dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery
/
jquery.mwExtension.js
diff --git
a/resources/src/jquery/jquery.mwExtension.js
b/resources/src/jquery/jquery.mwExtension.js
index
6d478bd
..
4bcccdd
100644
(file)
--- a/
resources/src/jquery/jquery.mwExtension.js
+++ b/
resources/src/jquery/jquery.mwExtension.js
@@
-11,7
+11,7
@@
},
trimRight: function ( str ) {
return str === null ?
},
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 );
},
ucFirst: function ( str ) {
return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
@@
-122,7
+122,7
@@
} );
mw.log.deprecate( $, 'escapeRE', function ( str ) {
} );
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 ) );
}, 'Use mediawiki.RegExp instead.' );
}( jQuery, mediaWiki ) );