You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
Roy Marples 89845f6728 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.
7 years ago
..
auth Check for valid renamed usernames (#2077) 7 years ago
avatar Use assert in legacy unit tests (#867) 7 years ago
base lint 7 years ago
context Fix missing-return bug (#2109) 7 years ago
cron LDAP user synchronization (#1478) 7 years ago
highlight No highlighting for .txt files (#1922) 7 years ago
httplib Add internal routes for ssh hook comands (#1471) 7 years ago
indexer Search bar for issues/pulls (#530) 8 years ago
lfs Fix typos in models/ and modules/ (#1248) 7 years ago
log Remove unused mutex field (#1440) 7 years ago
mailer fix misspell (#1996) 7 years ago
markdown Fix SHA1 hash linking (#2143) 7 years ago
markup gofmt (#1710) 7 years ago
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 7 years ago
notification Notification - Step 1 (#523) 8 years ago
options Fix typos in models/ and modules/ (#1248) 7 years ago
private Drop db operations from hook commands (#1514) 7 years ago
process Refactor process package and introduce ProcessManager{} with tests (#75) 8 years ago
public Allow custom public files (#782) 8 years ago
setting Absolute path for setting.CustomConf (#2085) 7 years ago
ssh Cleanup log messaging 8 years ago
sync Fix status table race condition (#1835) 7 years ago
templates Sanitation fix from Gogs (#1461) 7 years ago
user golint fixed for modules/user 8 years ago
util refactor: remove workaround after the golang 1.7 release. (#1349) 7 years ago
validation Better URL validation (#1507) 7 years ago