From 6193f36a91916432fb25dd84ac9b18bc5e1c85b2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 25 Sep 2024 02:38:11 +0300 Subject: [PATCH] remove cpp macro from regex --- src/browser/main/tab/page/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/main/tab/page/mod.rs b/src/browser/main/tab/page/mod.rs index 171bc7f9..ba0d4a8f 100644 --- a/src/browser/main/tab/page/mod.rs +++ b/src/browser/main/tab/page/mod.rs @@ -51,7 +51,7 @@ impl Page { Err(_) => { // Try interpret host manually if Regex::match_simple( - r"regex(^[^\/\s]+\.[\w]{2,})regex", + r"^[^\/\s]+\.[\w]{2,}", request_text.clone(), RegexCompileFlags::DEFAULT, RegexMatchFlags::DEFAULT,