Change regex to strip a 10th place 0 only.
build_develop / build (push) Successful in 36s

This commit is contained in:
2025-03-21 13:56:28 -04:00
parent fa39949b1a
commit c1b327ca05
+2 -2
View File
@@ -208,9 +208,9 @@ class SubmissionCog(commands.Cog):
elif re.search("^[0-9](\\.[0-9])?$", score):
# need to add 0 in seconds and leading colon and 0
score = "0:0" + score
elif re.search("^[0]?[0-9]:[0-9]{2}(\\.[0-9])?$", score):
elif re.search("^[0][0-9]:[0-9]{2}(\\.[0-9])?$", score):
# if there is a minute 10ths place 0, remove
score = score.lstrip("0")
score = score[1:]
return score