[build] Fix regex in verification-metadata.xml for kotlin-native

Regex OR ('|') has weird precedence rules and previous version of regex
were essentially checking two alternatives:
- kotlin-native-prebuilt-.*-1\.9\.3[0-9](-.+)?
- 2\.0\.0(-.+)?

This is obviously incorrect, but it won't manifest on machines that
already downloaded that artifact to `.konan` via the build without
verification-metadata.xml
This commit is contained in:
Dmitry Savvinov
2023-10-03 16:37:28 +02:00
committed by Space Team
parent 8dc9307f9e
commit 0d98995a8e
+2 -1
View File
@@ -8,7 +8,8 @@
<trust file=".*-sources[.]jar" regex="true"/>
<trust file=".*[.]module" regex="true"/>
<trust file=".*[.]pom" regex="true"/>
<trust file="kotlin-native-prebuilt-.*-1\.9\.3[0-9](-.+)?|2\.0\.0(-.+)?" regex="true"/>
<trust file="kotlin-native-prebuilt-.*-1\.9\.3[0-9](-.+)?" regex="true"/>
<trust file="kotlin-native-prebuilt-.*-2\.0\.0(-.+)?" regex="true"/>
<trust group="gradle" name="gradle" file="gradle-.*-src[.]zip" regex="true"/>
<trust group="org.jetbrains.kotlin" name="builtins" version="1\.9\.3[0-9](-.+)?|2\.0\.0(-.+)?" regex="true"/>
<trust group="org.jetbrains.kotlin" name="kotlin-android-extensions" version="1\.9\.3[0-9](-.+)?|2\.0\.0(-.+)?" regex="true"/>