Merge "Remove useless test in getParamValue function of mediawiki.util.js"
authorCatrope <roan.kattouw@gmail.com>
Wed, 13 Jun 2012 00:18:51 +0000 (00:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Jun 2012 00:18:51 +0000 (00:18 +0000)
resources/mediawiki/mediawiki.util.js

index 4c20fad..9202d2e 100644 (file)
                        // 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' ) );