dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f56ff7
)
- in regex character classes has special meaning
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 27 Dec 2009 15:44:24 +0000
(15:44 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 27 Dec 2009 15:44:24 +0000
(15:44 +0000)
Fix for r60376, pointed out by Thana on bug 21946.
skins/common/wikibits.js
patch
|
blob
|
history
diff --git
a/skins/common/wikibits.js
b/skins/common/wikibits.js
index
95b2e06
..
11361df
100644
(file)
--- a/
skins/common/wikibits.js
+++ b/
skins/common/wikibits.js
@@
-705,9
+705,9
@@
function ts_initTransformTable() {
// if percents and regular numbers aren't being mixed.
ts_number_regex = new RegExp(
"^(" +
- "[
+-\u2212]?[0-9][0-9,]*(\\.[0-9,]*)?(E[+-
\u2212]?[0-9][0-9,]*)?" + // Fortran-style scientific
+ "[
-+\u2212]?[0-9][0-9,]*(\\.[0-9,]*)?(E[-+
\u2212]?[0-9][0-9,]*)?" + // Fortran-style scientific
"|" +
- "[
+-
\u2212]?" + digitClass + "+%?" + // Generic localised
+ "[
-+
\u2212]?" + digitClass + "+%?" + // Generic localised
")$", "i"
);
}