1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-27 18:03:38 +03:00
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
..
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2018-01-31 00:09:16 +02:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2018-11-04 22:20:00 -05:00
2019-04-02 08:48:31 +01:00
2017-11-13 22:51:45 +08:00
2018-03-16 22:04:33 +08:00
2019-03-08 11:42:50 -05:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00
2019-04-02 08:48:31 +01:00