1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-15 03:31:44 +08:00

Fix: correct dash in filter to \u002D

This commit is contained in:
2026-07-13 15:03:42 +08:00
parent d29f9dbc77
commit eb14706202

View File

@@ -32,10 +32,25 @@ class Filter:
˃ \u02c3
\u1433
\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 = re.sub(r'[ \t\r\n]', '', string)
string = re.sub(r'[>﹥›˃ᐳ❯]', '>', string)
string = re.sub(r'[‐‑‒–—―−-﹣﹘⁃]', '-', string)
self.filter_raw = string.split('>')
self.filter = [self.parse_filter(f) for f in self.filter_raw]