~mil/sxmo-surf

5f3e28e2d6534ac914193af705483f3a87e42b83 — Miles Alan 1 year, 2 months ago c71226a 2.0.3
Recognize URLs starting with // as valid URLs via regex instead of searching
1 files changed, 1 insertions(+), 1 deletions(-)

M surf.c
M surf.c => surf.c +1 -1
@@ 545,7 545,7 @@ loaduri(Client *c, const Arg *a)

	if (!urlish_regex)
		urlish_regex = g_regex_new(
			"^((http|https)://)?([a-z0-9-]+\\.)?[a-z0-9-]+(\\.[a-z]{0,6}){1,3}(/[a-z0-9.,_/~#&=;%+?-]*)?$",
			"^((http:|https:)?//)?([a-z0-9-]+\\.)?[a-z0-9-]+(\\.[a-z]{0,6}){1,3}(/[a-z0-9.,_/~#&=;%+?-]*)?$",
			G_REGEX_CASELESS|G_REGEX_DOLLAR_ENDONLY|G_REGEX_OPTIMIZE,
			0,
			NULL