1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-18 12:38:53 +08:00

Fix: correct dash in filter to \u002D (#5820)

This commit is contained in:
ArecaSapling
2026-07-16 23:50:10 +08:00
committed by GitHub
parent d09a988738
commit 0f85c251a4

View File

@@ -32,10 +32,25 @@ class Filter:
˃ \u02c3 ˃ \u02c3
\u1433 \u1433
\u276F \u276F
And tons of unicode characters similar to "-"
- \u002D correct
\u2010
\u2011
\u2012
\u2013
\u2014
\u2015
\u2212
\uFF0D
\uFE63
\uFE58
\u2043
""" """
string = str(string) string = str(string)
string = re.sub(r'[ \t\r\n]', '', string) string = re.sub(r'[ \t\r\n]', '', string)
string = re.sub(r'[>﹥›˃ᐳ❯]', '>', string) string = re.sub(r'[>﹥›˃ᐳ❯]', '>', string)
string = re.sub(r'[‐‑‒–—―−-﹣﹘⁃]', '-', string)
self.filter_raw = string.split('>') self.filter_raw = string.split('>')
self.filter = [self.parse_filter(f) for f in self.filter_raw] self.filter = [self.parse_filter(f) for f in self.filter_raw]