1/2 block regex edit

This commit is contained in:
Gordon Shumway 2019-06-02 20:13:32 -04:00 committed by GitHub
parent 5b0b3841e1
commit 7fb72e5071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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