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
@tokens = @source.split("\n")
else
@ss = StringScanner.new(source)
@ss = StringScanner.new(@source)
@tokens << shift_normal until @ss.eos?
end