1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-02 02:31:30 +02:00
gitea/modules/markup
silverwind 2242a9f82e Improve SHA1 link detection (#6526)
This improves the SHA1 link detection to not pick up extraneous
non-whitespace characters at the end of the URL. The '.' is a special
case handled in code itself because of missing regexp lookahead
support.

Regex test cases: https://regex101.com/r/xUMlqh/3
2019-04-06 21:28:45 +03:00
..
csv
external
markdown
orgmode
html_internal_test.go Improve SHA1 link detection (#6526) 2019-04-06 21:28:45 +03:00
html_test.go
html.go Improve SHA1 link detection (#6526) 2019-04-06 21:28:45 +03:00
markup_test.go
markup.go
sanitizer_test.go
sanitizer.go