1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/vendor
mrsdizzie f2de5dc8c8 Replace linkRegex with xurls library (#6261)
* Replace linkRegex with xurls library

Rather than maintaining a complicated regex to match URLs for
autolinking, gitea can use this existing go library that takes care of
the matching with very little code change to gitea itself. After
spending a while trying to find the perfect regex for all cases this library
still works better as it is more flexible than a single regex ever will be.

This will also fix the following issues: #5844 #3095 #3381

This passes all our current tests and I've added new ones mentioned in
those issues as well.

* Use xurls.StrictMatchingScheme instead of xurls.Strict

This is much faster and we only care about https? links to preserve
existing behavior.
2019-03-07 15:12:01 -05:00
..
code.gitea.io add isAdmin to user model (#6231) 2019-03-03 17:57:24 -05:00
github.com Replace linkRegex with xurls library (#6261) 2019-03-07 15:12:01 -05:00
golang.org/x Implement git refs API for listing references (branches, tags and other) (#5354) 2018-11-27 16:52:20 -05:00
gopkg.in Move to ldap.v3 to fix #5928 (#6105) 2019-02-18 12:34:37 +00:00
strk.kbt.io/projects/go/libravatar Migrate to dep (#3972) 2018-05-21 15:34:20 +03:00