Skip to content

Commit 5d35578

Browse files
DblKunknwon
authored andcommitted
Update size of SHA to fix #3538 (#3563)
1 parent d09fca3 commit 5d35578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markdown/markdown.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var (
9393
// Sha1CurrentPattern matches string that represents a commit SHA, e.g. d8a994ef243349f321568f9e36d5c3f444b99cae
9494
// FIXME: this pattern matches pure numbers as well, right now we do a hack to check in RenderSha1CurrentPattern
9595
// by converting string to a number.
96-
Sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{7,40}\b`)
96+
Sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{40}\b`)
9797
)
9898

9999
// FindAllMentions matches mention patterns in given content

0 commit comments

Comments
 (0)