https://bugzilla.wikimedia.org/show_bug.cgi?id=27960
Summary: $.escapeRE shouldn't escape letters and numbers
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Currently
$.escapeRE('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
is returning
'\A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z\1\2\3\4\5\6\7\8\9\0'
but it should not escape any letters.
I think it is necessary to escape the '-' in the regex:
/([\\{}()|.?*+-\^$\[\]])/g
because it is probably being understood as the interval from '+' to '\'.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l