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.
1 parent 452b68c commit 72bafd8Copy full SHA for 72bafd8
1 file changed
java/kotlin-extractor/kotlin_plugin_versions.py
@@ -58,7 +58,7 @@ def get_single_version(fakeVersionOutput = None):
58
if kotlinc is None:
59
raise KotlincNotFoundException()
60
versionOutput = subprocess.run([kotlinc, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True).stderr if fakeVersionOutput is None else fakeVersionOutput
61
- m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+-?[a-zA-Z]*) .*', versionOutput)
+ m = re.match(r'.* kotlinc-jvm ([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z][a-zA-Z0-9]*)?) .*', versionOutput)
62
if m is None:
63
raise Exception('Cannot detect version of kotlinc (got ' + str(versionOutput) + ')')
64
current_version = version_string_to_version(m.group(1))
0 commit comments