commit 24e625eddd69d8235572ca9eaaf3a419990305fb
parent 2a2b57bf2848330e9ae17b338899c24f0b3b81ea
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Tue, 2 Feb 2021 12:44:30 +0300
gemini links hl
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ii-node/web.go b/ii-node/web.go
@@ -675,7 +675,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}==)?$`)