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

Issue with String //@ - Doesn't understand them to be comments #4

Open
swimson opened this issue Feb 2, 2015 · 0 comments
Open

Issue with String //@ - Doesn't understand them to be comments #4

swimson opened this issue Feb 2, 2015 · 0 comments

Comments

@swimson
Copy link

swimson commented Feb 2, 2015

We ran across this when minifying some javascript that had comments // with an @ sign right afterwards.
It caused a whole chunk of code to be commented out. We fixed by changing to the alternate comment syntax /**

Test Case:

//@todo: This Comment causes issue with JSShrink
function test(){
console.log('Hello World');
}

function test2(){
test();
}

Output:

//@todo: This Comment causes issue with JSShrinkfunction test(){console.log('Hello World');}
function test2(){test();}

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

No branches or pull requests

1 participant