Lagrange [work/v1.6]

Adjusted URL detection for search queries

=> ca59f459325fb93d69207a8f5991178b1b5727a3

diff --git a/src/gmutil.c b/src/gmutil.c
index 2b40367d..857cd990 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -312,7 +312,7 @@ iBool isLikelyUrl_String(const iString *d) {
        hostname */
     iRegExp *pattern = new_RegExp("^([a-z]+:)?//.*|"
                                   "^(//)?([^/?#: ]+)([/?#:].*)$|"
-                                  "^(\\w+(\\.\\w+)+|localhost)$",
+                                  "^([-\\w]+(\\.[-\\w]+)+|localhost)$",
                                   caseInsensitive_RegExpOption);
     iRegExpMatch m;
     init_RegExpMatch(&m);
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.6/cdiff/ca59f459325fb93d69207a8f5991178b1b5727a3
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
52.448087 milliseconds
Gemini-to-HTML Time
0.217108 milliseconds

This content has been proxied by September (ba2dc).