Hello,
It looks like the lint tool used by the JavaScritpt editor has some issues parsing some constructions.
From what I can see in your code, using single line comment from within an object definition and using regular expressions.
(However, it looks like it is combination of some constructions not necessarily just regular expressions.)
I would suggest to report this issue to Technical Support.
A possible workaround for the issue with regular expressions would be to use new RegExp(pattern [, flags]) instead of using the syntax for a regular expression.
I hope this helps.
Hello,
It looks like the lint tool used by the JavaScritpt editor has some issues parsing some constructions.
From what I can see in your code, using single line comment from within an object definition and using regular expressions.
(However, it looks like it is combination of some constructions not necessarily just regular expressions.)
I would suggest to report this issue to Technical Support.
A possible workaround for the issue with regular expressions would be to use new RegExp(pattern [, flags]) instead of using the syntax for a regular expression.
I hope this helps.
Thanks for the info. Yes, I can use new RegExp to get rid of it and change to /* */ comment syntax for workarounds.
I submitted a ticket.