Home
Help
Search
Login
Register
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Beautify Javascript changes string
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Beautify Javascript changes string (Read 1988 times)
guth
Senior Community Member
Posts: 104
Hero Points: 7
Beautify Javascript changes string
«
on:
May 06, 2017, 07:18:50 PM »
I beautified a js file and didn't notice first that citation delimited strings were changed, some spacing where added inside these strings. I don't think beatification shall change the contents of a string. I'm on 21.0.2 64-bit windows.
Logged
patrick
SlickEdit Team Member
Senior Community Member
Posts: 1818
Hero Points: 151
Re: Beautify Javascript changes string
«
Reply #1 on:
May 08, 2017, 01:07:24 PM »
Odd. Can you make an example file that the beautifier does this to? I haven't managed to make it happen so far, I'm probably doing something differently than you.
Logged
guth
Senior Community Member
Posts: 104
Hero Points: 7
Re: Beautify Javascript changes string
«
Reply #2 on:
May 08, 2017, 06:50:13 PM »
Here is one example where the last string will be beautified incorrectly.
var re = new RegExp("A([/\\\\])\1*T([/\\\\])\2*S([/\\\\])\3*", "ig");
if(text === "") text = "[ {p: 'E', c: 0}]";
Logged
patrick
SlickEdit Team Member
Senior Community Member
Posts: 1818
Hero Points: 151
Re: Beautify Javascript changes string
«
Reply #3 on:
May 08, 2017, 09:00:22 PM »
Reproduced it. It's not hot-fixable, but it's been fixed for the 21.0.3 point release, which will be coming out pretty soon. Thanks for the report, that was a tricky one to trigger.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SlickEdit Community
»
SlickEdit Product Discussion
»
SlickEdit®
»
Beautify Javascript changes string