Hi Steve, I think I know what you're talking about, but the whitespace didn't come through properly in your examples. You may wan to retype your example with...
Hi, I have a question about Switch Case style as verified in jslint.A switch case written as below (case statement starting on the line after the switch...
I understand why the following code generates the warning "Unexpected 'typeof39;. Use '===' to compare directly with undefined" var foo; if (typeof foo ===...
I need to support user-supplied math functions. Are there any good alternatives to using eval, or, more likely, the Function constructor? I could write js code...
from http://www.regular-expressions.info/javascript.html JavaScript implements Perl-style regular expressions. However, it lacks quite a number of advanced...
... One of the design principles behind JSLint is that if a feature is problematic, and if it can be completely replaced with another feature that is less...
On Sat, Jan 19, 2013 at 3:01 AM, george_weilenmann <abyssoft@...> ... So, which regular expression syntax should JSLint enforce? POSIX? Is that even...
Did a little digging [^] compiles to not null/empty it is a side effect resulting from the spec for RegExp as performed in JavaScript but does not apply to...
Thankyou that did not pop out at me when I looked through that document earlier. I would say avoid that pattern as it is not valid RegExp. I think the way they...
2013/1/19 george_weilenmann <abyssoft@...> ... https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp "The character set [^]...
Can you point me to the specific link, page, paragraph etc. where this is spec'd, I looked on mozilla and could not find this "suggestion". I wanted to take a...
If you read the documentation on mozilla.org you will find [^] as their suggested "any character" expression Ben ... [Non-text portions of this message have...
such cleverness isn't valid in other regex languages, so it would seem to an unfortunate pattern to learn. -- -Peter Buckner ... [Non-text portions of this...
I think it looks like an error if you haven't come across it before, but once you have, it is probably quite understandable. You could argue that it could be a...
... ah yes, very clever. most impressive. and *therefore* it is, i think, the kind of thing jslint should grumble about. regexes are hard enough to understand...
Hi, My colleague was linting this and getting an error var a = /<.+>[^]<.+>/; Unescaped '^'. He argued that [^] was a valid succinct way of saying "any...
Unexpected '*'. Rationale for acceptance: The * selector in CSS, also known as the universal selector, is useful for setting styling to the full array of...
I’ve run into an error that is a bit strange to see. The <summary> tag is not allowed as it is unrecognized however the <details> tag is allowed. I’ve...
... I completely agree. It is wise to wrap regexp literals in parens to avoid syntactic weirdness. But that is not what JSLint is complaining about. Try this: ...
There appears to be a new rule that looks for unnecessary parenthesis, but this rule gets confused when wrapping regex: var mhtml = true, disqualify = (mhtml)...