Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit ed17546

Browse files
appleboybkcsoft
authored andcommitted
fix tag contain character ")"
1 parent 3f99247 commit ed17546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo_tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func parseTag(line string, opt TagOption) (*Tag, error) {
122122
if start < 0 {
123123
return nil, nil
124124
}
125-
end := strings.IndexByte(left[start+1:], ')')
125+
end := strings.LastIndexByte(left[start+1:], ')')
126126
if end < 0 {
127127
return nil, nil
128128
}

0 commit comments

Comments
 (0)