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...
3098
Ben White
benxwhite
Jan 18, 2013 6:35 pm
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...
3099
george_weilenmann
george_weile...
Jan 18, 2013 11:37 pm
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...
3100
Keradus
keradmaster
Jan 19, 2013 1:07 am
2013/1/19 george_weilenmann <abyssoft@...> ... https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp "The character set [^]...
3101
george_weilenmann
george_weile...
Jan 19, 2013 1:54 am
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...
3102
george_weilenmann
george_weile...
Jan 19, 2013 2:02 am
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...
3103
Felix E. Klee
feklee
Jan 19, 2013 12:47 pm
On Sat, Jan 19, 2013 at 3:01 AM, george_weilenmann <abyssoft@...> ... So, which regular expression syntax should JSLint enforce? POSIX? Is that even...
3104
douglascrockford
douglascrock...
Jan 19, 2013 1:20 pm
... 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...
3105
John Hawkinson
john.hawkinson
Jan 19, 2013 1:48 pm
douglascrockford <douglas@...> wrote on Sat, 19 Jan 2013 ... It would really help if the documentation explained why [^] was excluded. ...
3106
george_weilenmann
george_weile...
Jan 19, 2013 10:27 pm
from http://www.regular-expressions.info/javascript.html JavaScript implements Perl-style regular expressions. However, it lacks quite a number of advanced...
3108
firstbakingbook
Jan 29, 2013 6:08 pm
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...
3109
andrew_wh
Jan 29, 2013 6:22 pm
I understand why the following code generates the warning "Unexpected 'typeof39;. Use '===' to compare directly with undefined" var foo; if (typeof foo ===...
3110
douglascrockford
douglascrock...
Jan 29, 2013 6:35 pm
... Thanks. Please try it now....
3111
andrew_wh
Jan 29, 2013 8:28 pm
Looks like it's been fixed. Thanks for the quick turnaround!...
3112
paperlampshade
Jan 31, 2013 10:56 pm
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...
3113
benquarmby
Feb 1, 2013 9:15 pm
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...
3114
paperlampshade
Feb 2, 2013 3:34 pm
Hi Ben, Oh shoot, sorry about that. Hopefully this will come through better: I have a question about Switch Case style as verified in jslint. A switch case...
3115
Felix E. Klee
feklee
Feb 2, 2013 4:36 pm
On Sat, Feb 2, 2013 at 4:33 PM, paperlampshade <beefo@...> ... Looks strange. The following formatting is IMHO easy to read and it is accepted by...
3116
douglascrockford
douglascrock...
Feb 2, 2013 6:03 pm
... Thanks. Please try it now....
3117
paperlampshade
Feb 5, 2013 3:36 am
Works great! Thanks very much....
3118
Felix E. Klee
feklee
Feb 5, 2013 5:14 pm
Well, today I'm not in good shape, and I expected the following code to output just one zero. The code passes JSLint. /*jslint devel: true */ (function () { ...
3119
Keradus
keradmaster
Feb 5, 2013 5:31 pm
It's a matter of priority. First "<" will be executed, then "?". So i < isOneWayFlight ? 1 : 2 is the same as (i < isOneWayFlight) ? 1 : 2 regarding to initial...
3120
Felix E. Klee
feklee
Feb 5, 2013 5:41 pm
... I know. Still the error slipped in, out of sloppiness, like many errors that JSLint is designed to capture....
3121
george_weilenmann
george_weile...
Feb 5, 2013 10:17 pm
This is more of an error on the part of the knowledge of the developer then on the part of JSLint. The code pattern is perfectly valid and not confusing to...
3122
Felix E. Klee
feklee
Feb 5, 2013 11:11 pm
On Tue, Feb 5, 2013 at 11:17 PM, george_weilenmann <abyssoft@...> ... Exactly not. I'm a C programmer for more than 20 years, and I'm well versed with...
3123
douglascrockford
douglascrock...
Feb 6, 2013 3:47 am
... Thanks. Please try it now....
3124
george_weilenmann
george_weile...
Feb 6, 2013 4:12 am
Nice compromise. Works great and indeed improves readability....
3125
Felix E. Klee
feklee
Feb 7, 2013 9:50 am
... So quick - thanks! :-)...
3126
douglascrockford
douglascrock...
Feb 17, 2013 12:33 am
I have added an experimental context coloring feature to JSLint. It is intended to provide context coloring in text editors and IDEs. Context coloring gives a...
3127
douglascrockford
douglascrock...
Feb 19, 2013 6:20 pm
The experiment of using Yahoo Group's Database to manage JSLint configurations has not turned out well. So now I am going to try using Github's wiki. If you...