Skip to content

Commit e14f917

Browse files
author
Justin Ryan
committed
Use a regex to capture the whole Output line
1 parent a088f42 commit e14f917

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ class Tags {
4949
}
5050

5151
def extractOutputLine() {
52-
if (!block.contains("/* Output:")) {
53-
return null
52+
def matcher = (block =~ /(?m)^(\/\* Output:.*)$/)
53+
if (matcher) {
54+
return matcher[0][1]
5455
} else {
55-
return "/* Output:"
56+
return null
5657
}
5758
}
5859

0 commit comments

Comments
 (0)