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

Commits on Dec 7, 2018

  1. Use Regexp#=== to match loosely

    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 `-`.
    nobu committed Dec 7, 2018
    Configuration menu
    Copy the full SHA
    3785620 View commit details
    Browse the repository at this point in the history