[wp-trac] [WordPress Trac] #21175: Found a bug in JavaScript program
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 7 00:15:41 UTC 2012
#21175: Found a bug in JavaScript program
--------------------------+------------------------------
Reporter: UmarFarooque | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by azaozz):
Well, JSLint is wrong here. A dash as the first or last char in a
character set (a.k.a. character class) doesn't need escaping.
The "line 6 character 44 Unescaped '/'" is wrong too or the regex would
throw parse error. As far as I know `/[/]/` works as expected and the `/`
doesn't need escaping inside `[]`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21175#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list