We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afbf1d8 commit bbc0309Copy full SHA for bbc0309
modules/twinkletag.js
@@ -1899,7 +1899,7 @@ Twinkle.tag.callbacks = {
1899
$.each(params.tags, (k, tag) => {
1900
// when other commons-related tags are placed, remove "move to Commons" tag
1901
if (['Keep local', 'Do not move to Commons'].includes(tag)) {
1902
- 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, '');
1903
}
1904
1905
currentTag = tag;
0 commit comments