Home Download Buy Blog Forum Support

Coloration error with regex in JS

Coloration error with regex in JS

Postby TiTi on Mon Feb 27, 2012 9:03 am

Hi,

I'm having an issue with the following javascript code :

Code: Select all
// previous js code (coloration ok)
//...
this._notAllowedCharsRegexp = /[/\\?*:|\"<>]/g; // escaped quote in regex
this._originalDocumentName = originalDocumentName.replace(this._notAllowedCharsRegexp, ""); // coloration is bad starting from here
//...
// following js code



The coloration is bad for the rest of the document....

Thx!
TiTi
 
Posts: 1
Joined: Mon Feb 27, 2012 8:59 am

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 17 guests