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

Suppress regexp warning of "character calss has duplicated range" #8

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

pocke
Copy link
Contributor

@pocke pocke commented Jul 3, 2019

It displays the following warnings.

/home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/opal-0.11.4/lib/opal/nodes/literal.rb:152: warning: character class has duplicated range: /^([^.#]*)\.([-_\w]+)(\#([-_\w]+))?/
/home/pocke/.rbenv/versions/trunk/lib/ruby/gems/2.7.0/gems/opal-0.11.4/lib/opal/nodes/literal.rb:152: warning: character class has duplicated range: /^([^.#]*)\#([-_\w]+)(\.([-_\w]+))?/

Because \w includes _.

This pull request will suppress the warnings.

@yhara yhara merged commit fc662b4 into yhara:master Jul 3, 2019
@pocke pocke deleted the remove-warning-of-duplicate-range branch July 3, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants