Topic on MediaWiki talk:Gadget-popups.js

Deprecated mw.RegExp.escape() used

4
FeRDNYC (talkcontribs)

This tool's literalizeRegex() function uses mw.RegExp.escape(), which causes the following message to be output repeatedly on the browser console:

Use of "mw.RegExp.escape" is deprecated. Use mw.util.escapeRegExp() instead.

The code at English Wikipedia has already been updated to call mw.util.escapeRegExp(); please update from there.

MarkAHershberger (talkcontribs)

@Krinkle I do not have rights to do this. Could you?

Bawolff (talkcontribs)

Yes Done

English wikipedia has other changes as well. I only adjusted the regexp part.

FeRDNYC (talkcontribs)

Works for me. I thank you, and my newly-silent (well, mostly, still some ResourceLoader whining) console thanks you!