Skip to content

Commit

Permalink
Fix a typo: this should be IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jan 11, 2025
1 parent 624434c commit a8b0802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/concerns/liquid_interpolatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def to_xpath(string)

def regex_extract(input, regex, index = 0)
input.to_s[Regexp.new(regex), index]
rescue Index
rescue IndexError
nil
end

Expand Down

0 comments on commit a8b0802

Please sign in to comment.