Skip to content

Commit

Permalink
Merge pull request #1889 from Shopify/default-variable-lookup-string-…
Browse files Browse the repository at this point in the history
…scanner

Add default string_scanner to `Liquid::VariableLookup.parse`
  • Loading branch information
ggmichaelgo authored Jan 14, 2025
2 parents fe3da0e + 8e37c5e commit cd99715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/liquid/variable_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class VariableLookup

attr_reader :name, :lookups

def self.parse(markup, string_scanner, cache = nil)
def self.parse(markup, string_scanner = StringScanner.new(""), cache = nil)
new(markup, string_scanner, cache)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module Liquid
VERSION = "5.6.3"
VERSION = "5.6.4"
end

0 comments on commit cd99715

Please sign in to comment.