Compare commits
2 commits
50ea5fc979
...
0d2dd03691
Author | SHA1 | Date | |
---|---|---|---|
0d2dd03691 | |||
68fc254d88 |
1 changed files with 3 additions and 3 deletions
|
@ -46,10 +46,10 @@ for line in sys.stdin:
|
|||
|
||||
if "message" in line and line["message"] != "":
|
||||
message = line["message"]
|
||||
message = re.sub(r"^[#>]* *|[*_`]*", "", message)
|
||||
message = re.sub(r"^[#>]* ?|[*_`]*", "", message)
|
||||
for emoji, numb in NUMBER_EMOJI.items():
|
||||
message = re.sub(f" *:{emoji}: *", numb, message)
|
||||
message = re.sub(" *:(?:green)?num([0-9]+): *", lambda m: m.group(1), message)
|
||||
message = re.sub(" ?:(?:green)?num([0-9]+): ?", lambda m: m.group(1), message)
|
||||
message = message.replace("\ufe0f", "").replace("\u20e3", "")
|
||||
message = message.strip()
|
||||
else:
|
||||
|
@ -116,7 +116,7 @@ else:
|
|||
else:
|
||||
print(f"Checked from {start_number} up to {number}")
|
||||
if messages:
|
||||
print("Errors:")
|
||||
print("🚨 Errors: 🚨")
|
||||
print("\n".join(messages))
|
||||
else:
|
||||
print("No errors! 🎉")
|
||||
|
|
Loading…
Reference in a new issue