From 03747444a9d0015305eb05e2d1f4ab0af042fb52 Mon Sep 17 00:00:00 2001 From: phoebos Date: Thu, 8 Dec 2022 00:48:53 +0000 Subject: [PATCH] uri: fix regex --- src/uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uri.c b/src/uri.c index 91fbf2f..cd9af23 100644 --- a/src/uri.c +++ b/src/uri.c @@ -7,7 +7,7 @@ /* exact one right now. anyway, it's a little too general for my tastes, */ /* but the one I came up with was trash (unsurprisingly) so here we are. */ /* need to modify this in the future to be less liberal... */ -#define REGEX_URI "^([^:/?#]+)://(([^/?#]*)+([^?#]*))(\\?([^#]*))?(#(.*))?" +#define REGEX_URI "^([^:/?#]+)://(([^/?#]+)([^?#]*))(\\?([^#]*))?(#(.*))?" #define SUBSTR_COUNT 8 -- 2.38.1