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

Allow %Q for dynamic strings with double quotes inside #2419

Merged
merged 1 commit into from
Nov 11, 2015

Conversation

jonas054
Copy link
Collaborator

If the string is dynamic and has double quote characters inside it, then %Q is warranted. We had a spec example for this already, but it contained a backslash that shouldn't be there.

@@ -10,6 +10,7 @@

### Bug Fixes

* [#2413](https://github.com/bbatsov/rubocop/issues/2413): Allow `%Q` for dynamic strings with double quotes inside them. ([@jonas054][])
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be in the master section. I cut 0.35.1 yesterday because of the caching bug.

If the string is dynamic and has double quote characters
inside it, then `%Q` is warranted. We had a spec example
for this already, but it contained a backslash that
shouldn't be there.
@jonas054
Copy link
Collaborator Author

Fixed changelog.

bbatsov added a commit that referenced this pull request Nov 11, 2015
Allow `%Q` for dynamic strings with double quotes inside
@bbatsov bbatsov merged commit 76eee90 into rubocop:master Nov 11, 2015
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.

None yet

2 participants