Malafaya added a comment.

I did a quick test with the latest version and it seems to be working.

This is a quick example I tried in user-fixes.py (excluding imports etc.):

  fixes.update({
      'XXXX': {
          'regex': True,
          'msg': 'pywikibot-fixes-html',
          'replacements': [
              (r'(?i)([\r\n]) *<h6> *([^<]+?) *</h6> *([\r\n])',  r"\1====== \2 
======\3"),
          ],
          'exceptions': {
              'inside-tags': [
                  'nowiki',
                  'comment',
                  'math',
                  'pre'
              ],
          }
      }
  }
  )

When using an invalid fix name, I can see my fix listed:

> Available predefined fixes are: correct-ar, isbn, HTML, case-de, datum, 
> syntax, grammar-de, syntax-safe, specialpages, fckeditor, XXXX, vonbis, 
> music, yu-tld





TASK DETAIL
  https://phabricator.wikimedia.org/T112102

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise, Malafaya
Cc: Malafaya, Aklapper, pywikibot-bugs-list, Beta16, jayvdb



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to