Use optimised 2.4 syntax

This commit is contained in:
Mike Angell
2019-08-27 17:46:09 +10:00
parent da9051eb18
commit 0dd22af7d6
+1 -1
View File
@@ -44,7 +44,7 @@ module Liquid
token.lstrip! if parse_context.trim_whitespace
parse_context.trim_whitespace = false
@nodelist << token
@blank &&= !!(token =~ WHITESPACE_OR_NOTHING)
@blank &&= token.match?(WHITESPACE_OR_NOTHING)
end
parse_context.line_number = tokenizer.line_number
end