Add better support for WotLK

This commit is contained in:
Casper V. Kristensen 2022-09-01 02:01:43 +02:00
parent 573530e446
commit d2c7c020ab

View file

@ -130,7 +130,7 @@ def toc_stem(toc: str):
Removes AddOn .toc client version suffixes, such as '-Classic.toc' or '-BCC.toc'.
See https://github.com/Stanzilla/WoWUIBugs/issues/68#issuecomment-889431675 for more information.
"""
return re.sub(r"(.*)[_-](Classic|Vanilla|BCC|TBC|Mainline)(\.toc)", r"\1\3", toc)
return re.sub(r"(.*)[_-](Classic|Vanilla|BCC|TBC|Wrath|WotLK|Mainline)(\.toc)", r"\1\3", toc)
def get_valid_dir_filename(s: str) -> str: