diff options
author | Rémy Boulanouar <rboulanouar@gmail.com> | 2016-08-31 23:22:17 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-31 14:22:17 -0700 |
commit | 5d35578811f68629bfd28d28d19310d3820b8b79 (patch) | |
tree | 3e84ad67841f92e3d1581c92d0b263c674fd315a /modules/markdown | |
parent | d09fca3ca9f40be6b4c291028418d5c95428db17 (diff) | |
download | gitea-5d35578811f68629bfd28d28d19310d3820b8b79.tar.gz gitea-5d35578811f68629bfd28d28d19310d3820b8b79.zip |
Update size of SHA to fix #3538 (#3563)
Diffstat (limited to 'modules/markdown')
-rw-r--r-- | modules/markdown/markdown.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go index 7bfb0ec60a..a15501ec8d 100644 --- a/modules/markdown/markdown.go +++ b/modules/markdown/markdown.go @@ -93,7 +93,7 @@ var ( // Sha1CurrentPattern matches string that represents a commit SHA, e.g. d8a994ef243349f321568f9e36d5c3f444b99cae // FIXME: this pattern matches pure numbers as well, right now we do a hack to check in RenderSha1CurrentPattern // by converting string to a number. - Sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{7,40}\b`) + Sha1CurrentPattern = regexp.MustCompile(`\b[0-9a-f]{40}\b`) ) // FindAllMentions matches mention patterns in given content |