mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Parens are required before * when used for splatting.
https://stackoverflow.com/questions/41821628/ruby-how-can-i-kill-warning-interpreted-as-argument-prefix
This commit is contained in:
parent
43ab0b2f48
commit
e6157c21b9
@ -25,7 +25,7 @@ module ToRegex
|
||||
# @option options [true,false] :lang /foo/[nesu]
|
||||
def to_regex(options = {})
|
||||
if args = as_regexp(options)
|
||||
::Regexp.new *args
|
||||
::Regexp.new(*args)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user