We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc0309 commit 65ac30bCopy full SHA for 65ac30b
modules/twinklespeedy.js
@@ -1408,7 +1408,7 @@ Twinkle.speedy.callbacks = {
1408
text = text.replace(/\{\{\s*([Uu]serspace draft)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/g, '');
1409
if (mw.config.get('wgNamespaceNumber') === 6) {
1410
// remove "move to Commons" tag - deletion-tagged files cannot be moved to Commons
1411
- text = text.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi, '');
+ text = text.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)(?!( in))\}\}/gi, '');
1412
}
1413
1414
if (params.requestsalt) {
0 commit comments