Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4433c commit a60514cCopy full SHA for a60514c
working.py
@@ -22,7 +22,7 @@ def main():
22
23
def convert(s):
24
try:
25
- if matches := re.match("([0-9][0-2]?):?([0-5][0-9])? ([A|P][M]) to ([0-9][0-2]?):?([0-5][0-9]?)? ([A|P][M])", s):
+ if matches := re.match("^([0-9][0-2]?):?([0-5][0-9])? ([A|P][M]) to ([0-9][0-2]?):?([0-5][0-9]?)? ([A|P][M])$", s):
26
# print(f'{matches.group(1)}, {matches.group(2)}, {matches.group(3)}, {matches.group(4)}, {matches.group(5)}, {matches.group(6)}')
27
28
if matches.group(3) == "AM":
0 commit comments