Skip to content

Commit cd99715

Browse files
authoredJan 14, 2025
Merge pull request #1889 from Shopify/default-variable-lookup-string-scanner
Add default string_scanner to `Liquid::VariableLookup.parse`
2 parents fe3da0e + 8e37c5e commit cd99715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎lib/liquid/variable_lookup.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class VariableLookup
66

77
attr_reader :name, :lookups
88

9-
def self.parse(markup, string_scanner, cache = nil)
9+
def self.parse(markup, string_scanner = StringScanner.new(""), cache = nil)
1010
new(markup, string_scanner, cache)
1111
end
1212

‎lib/liquid/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module Liquid
5-
VERSION = "5.6.3"
5+
VERSION = "5.6.4"
66
end

0 commit comments

Comments
 (0)
Failed to load comments.