Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Regexp#=== to match loosely #298

Closed
wants to merge 1 commit into from

Conversation

nobu
Copy link
Member

@nobu nobu commented Dec 7, 2018

Till ruby 2.5, Object#=~ silently ignored non-string argument, but it has been deprecated since ruby 2.6 and will be removed in the future. Use Regexp#=== instead, to match loosely.

Also /^-/ is not a proper pattern to tell if the argument starts with a -.

Till ruby 2.5, `Object#=~` silently ignored non-string argument,
but it has been deprecated since ruby 2.6 and will be removed in
the future.  Use `Regexp#===` instead, to match loosely.

Also `/^-/` is not a proper pattern to tell if the argument starts
with a `-`.
@hsbt
Copy link
Member

hsbt commented Dec 7, 2018

Fixed with #297

@hsbt hsbt closed this Dec 7, 2018
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.56% when pulling 3785620 on nobu:bug/deprecated-warning into 80e00e2 on ruby:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants