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 f3cc6ae commit c2656ddCopy full SHA for c2656dd
java/kotlin-extractor/kotlin_plugin_versions.py
@@ -38,7 +38,7 @@ def get_single_version(fakeVersionOutput = None):
38
if kotlinc is None:
39
raise KotlincNotFoundException()
40
versionOutput = subprocess.run([kotlinc, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
41
- m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+) .*', versionOutput)
+ m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+-?[a-zA-Z]*) .*', versionOutput)
42
if m is None:
43
raise Exception('Cannot detect version of kotlinc (got ' + str(versionOutput) + ')')
44
current_version = version_string_to_tuple(m.group(1))
0 commit comments