From 1b2473fd155b88c8aa90aaa844d183af617b6e8a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 28 Jun 2026 18:13:24 +0900 Subject: fix(util): restore PHP delimiters in ported regex patterns Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/util/hg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe/src/util/hg.rs') diff --git a/crates/shirabe/src/util/hg.rs b/crates/shirabe/src/util/hg.rs index 0caf3ab..cdfcd4e 100644 --- a/crates/shirabe/src/util/hg.rs +++ b/crates/shirabe/src/util/hg.rs @@ -59,7 +59,7 @@ impl Hg { // Try with the authentication information available let mut matches: indexmap::IndexMap = indexmap::IndexMap::new(); let matched = Preg::is_match_named( - r"(?i)^(?Pssh|https?)://(?:(?P[^:@]+)(?::(?P[^:@]+))?@)?(?P[^/]+)(?P/.*)?", + r"{^(?Pssh|https?)://(?:(?P[^:@]+)(?::(?P[^:@]+))?@)?(?P[^/]+)(?P/.*)?}mi", &url, &mut matches, ); -- cgit v1.3.1