dépôts
/
lhc
/
web
/
wiklou.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge "Chinese Conversion Table Update 2015-7"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
mediawiki.template.regexp.js
1
mediaWiki
.
template
.
registerCompiler
(
'regexp'
, {
2
compile
:
function
(
src
) {
3
return
{
4
render
:
function
() {
5
return new
RegExp
(
6
src
7
// Remove whitespace
8
.
replace
(
/\s+/g
,
''
)
9
// Remove named capturing groups
10
.
replace
(
/\?<\w+?>/g
,
''
)
11
);
12
}
13
};
14
}
15
} );