1/2 block regex change

This commit is contained in:
Gordon Shumway 2019-06-02 19:34:17 -04:00 committed by GitHub
parent 8bb8be6813
commit f7ad0ddba8
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("\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])
aimg[k] = re.sub("\x03\0,{0}(\s+)\x03(\d+,){0}".format(color.split(',')[1]), "\x03\g<2>{0}\g<1>".format(color.split(',')[1]), aimg[k])
k += 1
elif '1/4' in optlist:
k = 0