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

"Replace quotes with escaping" excessively escapes single quote on double quoted string #11

Open
axelcostaspena opened this issue Oct 13, 2014 · 1 comment
Assignees
Labels

Comments

@axelcostaspena
Copy link
Owner

Have this:

$foo = 'foo \\\' bar';

Apply "Replace quotes with escaping"
Exepcted:

$foo = "foo \' bar";

Result:

$foo = "foo \\' bar";
@axelcostaspena axelcostaspena self-assigned this Oct 13, 2014
@axelcostaspena
Copy link
Owner Author

Affects also nowdocs:

$foo = <<<'TAG'
\"\'\\
TAG;

Apply "Convert to heredoc with escaping"
Expected:

$foo = <<<TAG
\"\'\\\
TAG;

Result:

$foo = <<<TAG
\"\\'\\\
TAG;

axelcostaspena added a commit that referenced this issue Oct 19, 2014
axelcostaspena added a commit that referenced this issue Oct 19, 2014
…ote on double quoted string)

Fix bad test data on testEscapeSequences
axelcostaspena added a commit that referenced this issue Oct 19, 2014
axelcostaspena added a commit that referenced this issue Oct 19, 2014
…pes single quote on double quoted string)

Fix bad test data on testEscapeSequences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant