diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-28 18:13:24 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-28 18:13:45 +0900 |
| commit | 1b2473fd155b88c8aa90aaa844d183af617b6e8a (patch) | |
| tree | 6d7257b3dfd7bb27418e0f650e91c039b2d02671 /crates/shirabe/src/util/hg.rs | |
| parent | 53f1fb395f33e0fb8db9aebd09ea9082f650f9f1 (diff) | |
| download | php-shirabe-1b2473fd155b88c8aa90aaa844d183af617b6e8a.tar.gz php-shirabe-1b2473fd155b88c8aa90aaa844d183af617b6e8a.tar.zst php-shirabe-1b2473fd155b88c8aa90aaa844d183af617b6e8a.zip | |
fix(util): restore PHP delimiters in ported regex patterns
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/hg.rs')
| -rw-r--r-- | crates/shirabe/src/util/hg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String, String> = indexmap::IndexMap::new(); let matched = Preg::is_match_named( - r"(?i)^(?P<proto>ssh|https?)://(?:(?P<user>[^:@]+)(?::(?P<pass>[^:@]+))?@)?(?P<host>[^/]+)(?P<path>/.*)?", + r"{^(?P<proto>ssh|https?)://(?:(?P<user>[^:@]+)(?::(?P<pass>[^:@]+))?@)?(?P<host>[^/]+)(?P<path>/.*)?}mi", &url, &mut matches, ); |
