You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly thank you for making this gem, I've been playing around with a recipe tool at home and stumbled across cooklang and your parser.
I noticed that if the recipe was missing a new line character at the end of the final line it would hang.
CooklangRb::Recipe.new("A very short recipe")=> *hangs*
vs
CooklangRb::Recipe.new("A very short recipe\n")#<CooklangRb::Recipe:0x0000000111c0cb70 @buffer=#<StringScanner fin>, @metadata={}, @source="A very short recipe\n", @steps=[[{"type"=>"text", "value"=>"A very short recipe"}]]>
I've got a branch that I believe fixes the issue (although no particularly elegantly). Would you consider a PR with this fix?
The text was updated successfully, but these errors were encountered:
Hi there,
Firstly thank you for making this gem, I've been playing around with a recipe tool at home and stumbled across cooklang and your parser.
I noticed that if the recipe was missing a new line character at the end of the final line it would hang.
vs
I've got a branch that I believe fixes the issue (although no particularly elegantly). Would you consider a PR with this fix?
The text was updated successfully, but these errors were encountered: