Skip to content

Commit

Permalink
Merge pull request #113 from olleolleolle/patch-3
Browse files Browse the repository at this point in the history
Avoid "deprecated Object#=~ is called on Integer"
  • Loading branch information
zzak committed Apr 14, 2021
2 parents cd71bbc + 82d5efc commit 9700e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mustermann/lib/mustermann/ast/translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def decorator_for(node)
# @!visibility private
def escape(char, parser: URI::DEFAULT_PARSER, escape: parser.regexp[:UNSAFE], also_escape: nil)
escape = Regexp.union(also_escape, escape) if also_escape
char =~ escape ? parser.escape(char, Regexp.union(*escape)) : char
char.to_s =~ escape ? parser.escape(char, Regexp.union(*escape)) : char
end
end
end
Expand Down

0 comments on commit 9700e71

Please sign in to comment.