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

Add forward slash to LITERAL_REGEX #7464

Merged
merged 1 commit into from Oct 28, 2019

Commits on Oct 27, 2019

  1. Add forward slash to LITERAL_REGEX

    The forward slash character has no special meaning when it appears in a
    regex. This will let `Performance/StartWith` and `Performance/EndWith`
    correct code like the following:
    
        path =~ %r{/\z}
    
    To:
    
        path.end_with?('/')
    eugeneius committed Oct 27, 2019
    Copy the full SHA
    3cf06e5 View commit details
    Browse the repository at this point in the history