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 c4a385f commit 5656278Copy full SHA for 5656278
java/kotlin-extractor/pick-kotlin-version.py
@@ -26,7 +26,7 @@ def version_tuple(v):
26
res = subprocess.run([kotlinc, "-version"], text=True, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
27
if res.returncode != 0:
28
raise Exception(f"kotlinc -version failed: {res.stderr}")
29
-m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z][a-zA-Z0-9]*)?) .*', res.stderr)
+m = re.search(r' kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z][a-zA-Z0-9]*)?) ', res.stderr)
30
if m is None:
31
raise Exception(f'Cannot detect version of kotlinc (got {res.stderr})')
32
version = m[1]
0 commit comments