Skip to content

Commit e09d39f

Browse files
authored
Merge pull request BruceEckel#14 from quidryan/fix-output-line
Use a regex to capture the whole Output line
2 parents a088f42 + e14f917 commit e09d39f

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)