1/2block regex

This commit is contained in:
Gordon Shumway 2019-06-02 19:52:09 -04:00 committed by GitHub
parent 4a5aabbb56
commit 710f7debc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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