summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-07-12 03:26:54 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-07-12 04:26:54 +0200
commit89845f67283f5c767daa86aa0dd970d92cbdf717 (patch)
tree7ce2e8b9f851fd330127655307d5d749eccb6b5f /.drone.yml
parentceb3544697bfd1566f19afda0a98d13acb8e8b3b (diff)
downloadgitea-89845f67283f5c767daa86aa0dd970d92cbdf717.tar.gz
gitea-89845f67283f5c767daa86aa0dd970d92cbdf717.zip
Fix SHA1 hash linking (#2143)
This changes the regex to look for a hash from 7 to 40 characters, to match the use of abbreviated hash lookups in both git and github. The restriction of not being a pure number is also removed because 1234567 is now considered a valid abbreviated hash, as is deadbeef. A note has been added to the top of the code to state that the literal regex match is fine, but no extra validation is currently performed so some false positives are expected. A future change could ensure that the hash exists in the repository before rendering it as a link, although this might incur a slight performance penalty. Reverts part of commit 4a46613 and fixes #2053.
Diffstat (limited to '.drone.yml')
0 files changed, 0 insertions, 0 deletions