ibox = 'Infobox - whatever' fixes['add-infobox'] = { 'regex': True, 'exceptions': { 'text-contains': [ r'\{\{' + first_upper(ibox), r'\{\{' + first_lower(ibox), ], }, 'msg': { '_default': 'add infobox', }, 'replacements': [ build_infobox_regex(ibox), ], }
My text-contains key includes some regexes and the fix has regex: True. However, those exceptions only skip relevant articles when I include -regex to the command (which is otherwise redundant if I only use fixes).