Skip to content

Commit eeaf776

Browse files
committedAug 28, 2020
looks for space after colon (to avoid confusion with URLs, for example)
1 parent 1e00a18 commit eeaf776

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
@@ -534,7 +534,7 @@ func (p *Parser) extractCommentMetadata(comment string) (map[string]interface{},
534534
}
535535
// SplitN is being used to ensure that colons can exist
536536
// in values by only splitting on the first colon in the line
537-
splitLine := strings.SplitN(line, ":", 2)
537+
splitLine := strings.SplitN(line, ": ", 2)
538538
key := splitLine[0]
539539
value := strings.TrimSpace(splitLine[1])
540540
var val interface{}

0 commit comments

Comments
 (0)
Please sign in to comment.