fix regex

This commit is contained in:
Gordon Shumway 2019-06-02 19:07:24 -04:00 committed by GitHub
parent e89a4fff58
commit dabe6e769d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ class ASCII(callbacks.Plugin):
aimg[k] += " "
else:
aimg[k] += ""
aimg[k] = re.sub("\x03\d,{0}(\s+)\x03(\d+,){0}".format(color.split(',')[1]), "\x03\g<2>{0}\g<1>".format(color.split(',')[1]), aimg[k])
aimg[k] = re.sub("(\x03\d,{0}(\s+)\x03(\d+,){0})".format(color.split(',')[1]), "\x03\g<3>{0}\g<2>".format(color.split(',')[1]), aimg[k])
k += 1
elif '1/4' in optlist:
k = 0