mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Update strscan comment
This commit is contained in:
+1
-1
@@ -233,6 +233,6 @@ module Liquid
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: Remove this once Ruby 3.4.0 release is out
|
# Remove this once we can depend on strscan >= 3.1.1
|
||||||
Lexer = StringScanner.instance_methods.include?(:scan_byte) ? Lexer2 : Lexer1
|
Lexer = StringScanner.instance_methods.include?(:scan_byte) ? Lexer2 : Lexer1
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -208,6 +208,6 @@ module Liquid
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: Remove this once Ruby 3.4.0 release is out
|
# Remove this once we can depend on strscan >= 3.1.1
|
||||||
Tokenizer = StringScanner.instance_methods.include?(:scan_byte) ? Tokenizer2 : Tokenizer1
|
Tokenizer = StringScanner.instance_methods.include?(:scan_byte) ? Tokenizer2 : Tokenizer1
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user