Skip to content

Commit b51c3aa

Browse files
committed
Kotlin: Logs test: Allow for -Beta versions etc when parsing the logs
1 parent 6fbda1a commit b51c3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/integration-tests/all-platforms/kotlin/logs/index_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def write_line(origin, kind, msg):
3232
j = json.loads(line)
3333
msg = j['message']
3434
msg = re.sub(r'(?<=Extraction for invocation TRAP file ).*[\\/]kt-db[\\/]trap[\\/]java[\\/]invocations[\\/]kotlin\..*\.trap', '<FILENAME>', msg)
35-
msg = re.sub('(?<=Kotlin version )[0-9.]+', '<VERSION>', msg)
35+
msg = re.sub('(?<=Kotlin version )[0-9.]+(-[a-zA-Z0-9.]+)?', '<VERSION>', msg)
3636
if msg.startswith('Peak memory: '):
3737
# Peak memory information varies from run to run, so just ignore it
3838
continue

0 commit comments

Comments
 (0)