summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-14 14:54:59 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-14 14:57:12 +0200
commit7d152a93c4ada123e8f4eceb027fa8f085e2d1e2 (patch)
tree3166f884cba5a24c6f24a672ae83b50e467c5610 /src
parent69718dc5b9359629ae54d47571813fd4a0277206 (diff)
Adjusted URL detection for search queries
Dashes may appear in domain names.
Diffstat (limited to 'src')
-rw-r--r--src/gmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index ed6ef551..8dcffaa1 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -312,7 +312,7 @@ iBool isLikelyUrl_String(const iString *d) {
312 hostname */ 312 hostname */
313 iRegExp *pattern = new_RegExp("^([a-z]+:)?//.*|" 313 iRegExp *pattern = new_RegExp("^([a-z]+:)?//.*|"
314 "^(//)?([^/?#: ]+)([/?#:].*)$|" 314 "^(//)?([^/?#: ]+)([/?#:].*)$|"
315 "^(\\w+(\\.\\w+)+|localhost)$", 315 "^([-\\w]+(\\.[-\\w]+)+|localhost)$",
316 caseInsensitive_RegExpOption); 316 caseInsensitive_RegExpOption);
317 iRegExpMatch m; 317 iRegExpMatch m;
318 init_RegExpMatch(&m); 318 init_RegExpMatch(&m);