1/2 block regex change

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

View File

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