1
0

proj: Enhance ./test-return-values

This commit is contained in:
2025-03-09 10:58:24 +01:00
parent de790eabf9
commit ab6a405830
4 changed files with 119 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ class Handler(StreamRequestHandler):
def parse_arg(argument: str) -> tuple[any, int]:
if argument == '':
return None, 0
m = re.match(r'\s*\(nil\)', argument)
m = re.match(r'^\s*\(nil\)\s*(,|$)', argument)
if m:
return 0, len(m.group(0))
m = re.match(r'^\s*(.*?)([,:]|$)', argument)