Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Parens are required before * when used for splatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jun 3, 2017
1 parent 43ab0b2 commit e6157c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wayback_machine_downloader/to_regex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def literal?(str)
# @option options [true,false] :lang /foo/[nesu]
def to_regex(options = {})
if args = as_regexp(options)
::Regexp.new *args
::Regexp.new(*args)
end
end

Expand Down

0 comments on commit e6157c2

Please sign in to comment.