Update color code to ignore \\AA codes
This commit is contained in:
parent
0c48e160b4
commit
f9f7f50bca
1 changed files with 2 additions and 2 deletions
|
|
@ -1243,7 +1243,7 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
speakerList.append(match.group(1))
|
||||
if "\\c" in speakerList[0]:
|
||||
speakerList = re.findall(
|
||||
r"^[\\]+[cC]\[[\d]+\]【?(.+?)】?[\\]+[Cc]\[[\d]\]\\?\\?$",
|
||||
r"^[\\]+[cC]\[\d+\]【?(.+?)】?[\\]+[cC]\[\d+\](?:[\\]+[A-Za-z]+(?:\[[^\]]*\])?)*[\\]*$",
|
||||
speakerList[0],
|
||||
)
|
||||
|
||||
|
|
@ -1259,7 +1259,7 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
# Colors
|
||||
if len(speakerList) == 0:
|
||||
speakerList = re.findall(
|
||||
r"^[\\]+[cC]\[[\d]+\]【?(.+?)】?[\\]+[Cc]\[?[\d]?\]?\\?\\?$",
|
||||
r"^[\\]+[cC]\[\d+\]【?(.+?)】?[\\]+[cC]\[\d+\](?:[\\]+[A-Za-z]+(?:\[[^\]]*\])?)*[\\]*$",
|
||||
jaString,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue