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
<% if 'This is a string with the end keyword in it' %>
Content
<% end %>
I would expect this to parse fine. However, it seems that the "end" within the string is detected as an actual end keyword.
Erbse::Engine.new.call("<% if 'This is a string with the end keyword in it' %> Content <% end %>")NoMethodError: undefinedmethod`<<' for nil:NilClassfrom /usr/local/bundle/gems/erbse-0.1.4/lib/erbse/parser.rb:38:in `blockincall'
It's not just within strings, but anything with "end" in it, for example and object of a class that defines an end method:
<% if some_object.end %>
Content
<% end %>
The issue is that buffers is an empty array on this line:
Hi,
Consider this ERB content:
I would expect this to parse fine. However, it seems that the "end" within the string is detected as an actual
end
keyword.It's not just within strings, but anything with "end" in it, for example and object of a class that defines an
end
method:The issue is that
buffers
is an empty array on this line:erbse/lib/erbse/parser.rb
Line 33 in e36b5fa
The text was updated successfully, but these errors were encountered: