Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Handle more matching methods in Lint/OutOfRangeRegexpRef #8464
These were all of the relevant methods I could find from a quick grep of ruby/spec, although there could well be more.
Update: I read through the String class' docs and added several more methods.
Before submitting the PR make sure the following are checked:
`when`, `grep`, `gsub`, `gsub!` `sub`, `sub!`, ``, `slice`, `slice!`, `scan`, `index`, `rindex`, `partition`, `rpartition`, `start_with?`, and `end_with?` can all be used to match regexps, so we should update the range of valid references when we encounter them.