Skip to content

Commit

Permalink
Add abbreviation for "half om half"
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Mar 29, 2021
1 parent 479f902 commit 3c4f2a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/food_ingredient_parser/loose/scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Scanner
www\.[-_\/:%.A-Za-z0-9]+
)/xi,
*%w[
a.o.p b.g.a b.o.b c.a c.i d.e d.m.v d.o.c d.o.p d.s e.a e.g e.u f.i.l f.o.s i.a
i.d i.e i.g.m.e i.g.p i.m.v i.o i.v.m l.s.l n.a n.b n.o n.v.t o.a o.b.v p.d.o
a.o.p b.g.a b.o.b c.a c.i d.e d.m.v d.o.c d.o.p d.s e.a e.g e.u f.i.l f.o.s h.o.h
i.a i.d i.e i.g.m.e i.g.p i.m.v i.o i.v.m l.s.l n.a n.b n.o n.v.t o.a o.b.v p.d.o
p.g.i q.s s.l s.s t.o.v u.h.t v.g v.s w.a w.o w.v vit denat alc vol conc subsp
min max ca
].map {|s| /\A#{Regexp.escape(s)}\b\.?/i}
Expand Down
1 change: 1 addition & 0 deletions lib/food_ingredient_parser/strict/grammar/common.treetop
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module FoodIngredientParser::Strict::Grammar
'e.u'i /
'f.i.l'i /
'f.o.s'i /
'h.o.h'i /
'i.a'i /
'i.d'i /
'i.e'i /
Expand Down

0 comments on commit 3c4f2a3

Please sign in to comment.