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 3ec65a1 commit 1f1c66dCopy full SHA for 1f1c66d
.enforcer-scripts/validate-jbang-versions.groovy
@@ -21,11 +21,11 @@ jbangFile.eachLine { line ->
21
if (line.trim().startsWith(groupPrefix)) {
22
def lastColon = line.lastIndexOf(":")
23
if (lastColon != -1) {
24
- def actualVersion = line.substring(lastColon + 1).trim()
+ def actualVersion = line.substring(lastColon + 1).trim().tokenize()[0]
25
if (actualVersion != expectedVersion) {
26
System.err.println("[ERROR] JBang Version Mismatch in " + scriptName)
27
System.err.println(" Expected: " + expectedVersion)
28
- System.err.println(" Found: " + actualVersion)
+ System.err.println(" Found: " + actualVersion + " in line: \"" + line.trim() + "\"")
29
success = false
30
}
31
0 commit comments