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

Fix JavaScript Regex Pattern #242

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Fix JavaScript Regex Pattern #242

wants to merge 14 commits into from

Conversation

korny
Copy link
Member

@korny korny commented Nov 24, 2019

No description provided.

@korny korny self-assigned this Nov 24, 2019
@@ -42,11 +42,11 @@ class JavaScript < Scanner
ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
REGEXP_ESCAPE = / [bBdDsSwW] /x # :nodoc:
STRING_CONTENT_PATTERN = {
STRING_CONTENT_PATTERN = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Operator = should be surrounded by a single space. (https://rubystyle.guide#spaces-operators)

@codeclimate
Copy link

codeclimate bot commented Nov 24, 2019

Code Climate has analyzed commit 54268a9 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Style 1

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant