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);