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 % literal with the same sign of original #500

Merged
merged 3 commits into from
Aug 29, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Aug 25, 2017

In identify_string method, % literal is detected by literal type and quote sign. So %r/regexp/ is treated as /regexp/, because literal type is regexp and quote sign is /, it's the same. This commit fix it by checking type argument what is given only when % literal.

In identify_string method,
percent literal is detected by literal type and quote sign.
So %r/regexp/ is treated as /regexp/,
because literal type is regexp and quote sign is /, it's the same.
This commit fix it
by checking "type" argument what is given only when percent literal.
@hsbt hsbt self-assigned this Aug 26, 2017
@hsbt
Copy link
Member

hsbt commented Aug 29, 2017

Confirmed. Thanks.

@hsbt hsbt merged commit e897076 into ruby:master Aug 29, 2017
@aycabta aycabta deleted the percent-literal-with-original-sign branch August 29, 2017 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants