Wrong String concatenation #94

Closed
wisec opened this Issue Feb 9, 2012 · 1 comment

Projects

None yet

2 participants

wisec commented Feb 9, 2012

The following strings:

"use strict"
"cc"
become:
"use strict""cc"
Which obviously breaks the grammar.

Another test case:
var test = 'a String'+
'another concat '
'This is not concat with the prev '+
'';

Becomes
var test = 'a String' + 'another concat ''This is not concat with the prev ' + '';

Would it be possible to not let JSBeautifier to keep new lines in those cases?

Thanks and keep up!

Contributor
einars commented Feb 9, 2012

Thank you for the report! It is fixed now.

dc122f

@einars einars closed this Feb 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment