commit f161f78881d3a1cdaaa1eac2e7c66bbe09f3c6a9
parent 2250d248acd716e82d9b49e79b8422cb22748496
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Tue, 2 Feb 2021 09:45:40 +0000
Merge branch 'master' of https://github.com/gl00my/ii-go
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ii-node/web.go b/ii-node/web.go
@@ -705,7 +705,7 @@ func str_esc(l string) string {
}
var quoteRegex = regexp.MustCompile("^[^ >]*>")
-var urlRegex = regexp.MustCompile(`(http|ftp|https)://[^ <>"]+`)
+var urlRegex = regexp.MustCompile(`(http|ftp|https|gemini)://[^ <>"]+`)
var url2Regex = regexp.MustCompile(`{{{href=[0-9]+}}}`)
var urlIIRegex = regexp.MustCompile(`ii://[a-zA-Z0-9_\-.]+`)
var base64Regex = regexp.MustCompile(`^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$`)