Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-04-02 12:11:36 -0700 (Wed, 02 Apr 2008)
Add more tests for misplaced_regex.
--- trunk/tests/warnings/misplaced_regex.js 2008-04-02 15:14:31 UTC (rev 187)
+++ trunk/tests/warnings/misplaced_regex.js 2008-04-02 19:11:36 UTC (rev 188)
@@ -14,7 +14,13 @@
/* legal usage: regex as parameter (besides first) */
+ /* legal usage: regex in property */
+ var b = /\/\./.test(new String());
/* illegal usage: anything else */
i += /\/\./; /*warning:misplaced_regex*/
i = -/.*/; /*warning:misplaced_regex*/
+ /* legal usage: return */
+ return /\/\./;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: