mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
Remove sequences of _
This commit is contained in:
parent
90b88eb592
commit
dabde88e1c
2 changed files with 864 additions and 862 deletions
|
@ -86,7 +86,7 @@ if __name__ == '__main__':
|
||||||
if name.endswith(' face'):
|
if name.endswith(' face'):
|
||||||
name = name[:-5]
|
name = name[:-5]
|
||||||
elif name.endswith(' button'):
|
elif name.endswith(' button'):
|
||||||
name = name[:-7]
|
name = name[:-7]
|
||||||
else:
|
else:
|
||||||
matchobj = re.match(r'^flag: (.*)$', name)
|
matchobj = re.match(r'^flag: (.*)$', name)
|
||||||
if matchobj:
|
if matchobj:
|
||||||
|
@ -96,6 +96,8 @@ if __name__ == '__main__':
|
||||||
name = name.replace("“", "")
|
name = name.replace("“", "")
|
||||||
name = name.replace("”", "")
|
name = name.replace("”", "")
|
||||||
name = name.replace(":", "")
|
name = name.replace(":", "")
|
||||||
|
name = name.replace("-", "_")
|
||||||
|
name = re.sub(r'_{2,}', '_', name)
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
name = unidecode(name)
|
name = unidecode(name)
|
||||||
categories[current_category].append(Emoji(code, name))
|
categories[current_category].append(Emoji(code, name))
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue