Re: question on JSLint
- --- In email@example.com, "kipenzam" <kipenzam@...> wrote:
> I have linted my program, and got this error :Turn off the secure regexp option, or enumerate the set of characters that . should match.
> Problem at line 6 character 45: Insecure '.'.
> var reg = type === 'html' ? /<!--.*?-->/g: /\/\*.*?\*\//g;
> (If you see \, that is backslash)
> I've tried uncaptured group(?:.*)? for that, got same error.
> then how can I use characters like . ^ in regexp with secure? please help