Skip to content

Commit 1d904c6

Browse files
committedAug 28, 2020
fixed regex to look for colon with space
1 parent eeaf776 commit 1d904c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎parser/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func cleanComment(s string) string {
515515

516516
// metadataCommentRegex is the regex to pull key value metadata
517517
// used since we can't simply trust lines that contain a colon
518-
var metadataCommentRegex = regexp.MustCompile(`^.*:.*`)
518+
var metadataCommentRegex = regexp.MustCompile(`^.*: .*`)
519519

520520
// extractCommentMetadata extracts key value pairs from the comment.
521521
// It returns a map of metadata, and the

0 commit comments

Comments
 (0)