1
0
Fork 0
forgejo/modules
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
..
auth Increase Username and Orgname MaxSize 35 -> 40 (#6178) 2019-02-25 13:56:47 -05:00
avatar
base Serve audio files using HTML5 audio tag (#5221) 2018-10-30 10:17:26 +08:00
cache Fix memcache support when value is returned as string always (#2924) 2017-11-16 15:06:34 +08:00
context Fix #6234 : Check organization visibility before everything else (#6235) 2019-03-05 15:15:24 -05:00
cron Add branch overiew page (#2108) 2017-10-26 08:49:16 +08:00
generate Implements generator cli for secrets (#3531) 2018-02-18 20:14:37 +02:00
gzip Pooled and buffered gzip implementation (#5722) 2019-01-23 10:56:51 +02:00
highlight No highlighting for .txt files (#1922) 2017-06-09 19:39:16 -05:00
httplib Add sensitive headers (#3429) 2018-01-31 00:09:16 +02:00
indexer fix bug when set indexer as db and add tests (#6173) 2019-02-24 11:16:20 -05:00
lfs Allow markdown files to read from the LFS (#5787) 2019-02-12 15:09:43 +00:00
log Allow Macaron to be set to log through to gitea.log (#5667) 2019-02-05 22:06:41 -05:00
mailer Make log mailer for testing (#5893) 2019-02-02 21:06:52 -05:00
markup Replace linkRegex with xurls library (#6261) 2019-03-07 15:12:01 -05:00
metrics Prometheus endpoint (#5256) 2018-11-04 22:20:00 -05:00
minwinsvc
notification refactor issue indexer, add some testing and fix a bug (#6131) 2019-02-21 08:54:05 +08:00
options
pprof cmd/serve: pprof cpu and memory profile dumps to disk (#4560) 2018-08-07 14:49:18 -04:00
private Fix ssh deploy and user key constraints (#1357) (#5939) 2019-02-03 23:56:53 +00:00
process Fix run command race (#1470) 2017-11-13 22:51:45 +08:00
public When redirecting clean the path to avoid redirecting to //www.othersite.com (#5669) 2019-01-09 13:39:01 -05:00
recaptcha Add Recaptcha functionality to Gitea (#4044) 2018-07-05 00:13:05 -04:00
search Global code search support (#3664) 2018-03-16 22:04:33 +08:00
setting Add more tests and docs for issue indexer, add db indexer type for searching from database (#6144) 2019-02-21 13:01:28 +08:00
ssh use native golang SSH library but ssh-keygen when enable built-in SSH server to remove dependent on that command lines (#5976) 2019-02-07 02:13:12 -05:00
structs Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
sync Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
templates Create Progressive Web App (#4730) 2018-11-27 10:18:26 -05:00
test Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
uploader Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 2019-02-12 15:07:31 +02:00
user Remove check for negative length (#5120) 2018-10-20 17:25:14 -04:00
util Disallow empty titles (#5785) 2019-01-21 13:45:32 +02:00
validation Improve URL validation for external wiki and external issues (#4710) 2018-08-15 09:29:37 +03:00