X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.mwExtension.js;h=4bcccdd5e603ff05eca468dcb981a9ca3d790fe5;hp=6d478bd3553af6e1c415c05becd3a77fad735550;hb=4f2eed6877938c3c7703072567e62b933c07b4b5;hpb=3150aa2436d3e9593404625f04676fe45e405ed5 diff --git a/resources/src/jquery/jquery.mwExtension.js b/resources/src/jquery/jquery.mwExtension.js index 6d478bd355..4bcccdd5e6 100644 --- a/resources/src/jquery/jquery.mwExtension.js +++ b/resources/src/jquery/jquery.mwExtension.js @@ -11,7 +11,7 @@ }, trimRight: function ( str ) { return str === null ? - '' : str.toString().replace( /\s+$/, '' ); + '' : str.toString().replace( /\s+$/, '' ); }, ucFirst: function ( str ) { return str.charAt( 0 ).toUpperCase() + str.slice( 1 ); @@ -122,7 +122,7 @@ } ); mw.log.deprecate( $, 'escapeRE', function ( str ) { - return str.replace( /([\\{}()|.?*+\-\^$\[\]])/g, '\\$1' ); + return str.replace( /([\\{}()|.?*+\-^$\[\]])/g, '\\$1' ); // eslint-disable-line no-useless-escape }, 'Use mediawiki.RegExp instead.' ); }( jQuery, mediaWiki ) );