don't create string scanner for liquid tag

This commit is contained in:
Michael Go
2024-11-01 17:31:05 -03:00
parent fa51b8be40
commit fe2ba1d8da
+1 -1
View File
@@ -85,7 +85,7 @@ module Liquid
if @for_liquid_tag if @for_liquid_tag
@tokens = @source.split("\n") @tokens = @source.split("\n")
else else
@ss = StringScanner.new(source) @ss = StringScanner.new(@source)
@tokens << shift_normal until @ss.eos? @tokens << shift_normal until @ss.eos?
end end