forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#12985] Fix an error for `Style/RedundantRegexpCharacterC…
…lass` Fixes rubocop#12985. This PR fixes an error for `Style/RedundantRegexpCharacterClass` when using regexp_parser gem 2.3.1 or older. This issue has already been resolved in regexp_parser gem 2.4. In the past, there was an issue with compatibility with regexp_parser 1.x due to the following: rubocop#9102 (comment) Currently, many dependent gems including Capybara have permitted upgrading to regexp_parser 2.x: https://rubygems.org/gems/regexp_parser/reverse_dependencies Therefore, it would be a good time to specify `spec.runtime_dependency` as regexp_parser 2.4+.
- Loading branch information
Showing
3 changed files
with
6 additions
and
22 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog/fix_an_error_for_style_redundant_regexp_character_class.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#12985](https://github.com/rubocop/rubocop/issues/12985): Fix an error for `Style/RedundantRegexpCharacterClass` when using regexp_parser gem 2.3.1 or older. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters