dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
61eb7c1
)
Merge "Remove useless test in getParamValue function of mediawiki.util.js"
author
Catrope
<roan.kattouw@gmail.com>
Wed, 13 Jun 2012 00:18:51 +0000
(
00:18
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 13 Jun 2012 00:18:51 +0000
(
00:18
+0000)
resources/mediawiki/mediawiki.util.js
patch
|
blob
|
history
diff --git
a/resources/mediawiki/mediawiki.util.js
b/resources/mediawiki/mediawiki.util.js
index
4c20fad
..
9202d2e
100644
(file)
--- a/
resources/mediawiki/mediawiki.util.js
+++ b/
resources/mediawiki/mediawiki.util.js
@@
-233,7
+233,7
@@
// Get last match, stop at hash
var re = new RegExp( '^[^#]*[&?]' + $.escapeRE( param ) + '=([^&#]*)' ),
m = re.exec( url );
- if ( m
&& m.length > 1
) {
+ if ( m ) {
// Beware that decodeURIComponent is not required to understand '+'
// by spec, as encodeURIComponent does not produce it.
return decodeURIComponent( m[1].replace( /\+/g, '%20' ) );