Accept all :numXX: emoji
This commit is contained in:
parent
3181e52c20
commit
50ea5fc979
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ for line in sys.stdin:
|
|||
message = re.sub(r"^[#>]* *|[*_`]*", "", message)
|
||||
for emoji, numb in NUMBER_EMOJI.items():
|
||||
message = re.sub(f" *:{emoji}: *", numb, message)
|
||||
for numb in range(0, 9+1):
|
||||
message = re.sub(f" *:(green)?num{numb}: *", str(numb), message)
|
||||
message = re.sub(" *:(?:green)?num([0-9]+): *", lambda m: m.group(1), message)
|
||||
message = message.replace("\ufe0f", "").replace("\u20e3", "")
|
||||
message = message.strip()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue