diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-05-21 21:17:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 21:17:14 +0200 |
commit | d9d56e59813d340ec8e5c98e35ccecf1c97b693d (patch) | |
tree | 0bd2f762c8276c248630314cb3be34741e2cabf3 /src/url.ml | |
parent | 0d57cc9a266fe8d6fc87df5a769f42b4a45c7221 (diff) | |
parent | 0bfc133e64db5e0d530e3ba113a65d59a6dcee10 (diff) | |
download | vyos-utils-d9d56e59813d340ec8e5c98e35ccecf1c97b693d.tar.gz vyos-utils-d9d56e59813d340ec8e5c98e35ccecf1c97b693d.zip |
Merge pull request #21 from jestabro/T5940-sagitta1.4.0
T5940: relax regex of uri user information for 1.3.x compatibility
Diffstat (limited to 'src/url.ml')
-rw-r--r-- | src/url.ml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ let regex_matches regex s = let host_path_format = Pcre.regexp - {|^//(?:[a-zA-Z0-9\-\._~]+(?::[a-zA-Z0-9\-\._~]*)?@)?([a-zA-Z0-9\-\._~]+|\[[a-zA-Z0-9:\.]+\])(?::([0-9]+))?(/.*)?$|} + {|^//(?:[^/?#]+(?::[^/?#]*)?@)?([a-zA-Z0-9\-\._~]+|\[[a-zA-Z0-9:\.]+\])(?::([0-9]+))?(/.*)?$|} let host_name_format = Pcre.regexp {|^[a-zA-Z0-9]+([\-\._~]{1}[a-zA-Z0-9]+)*$|} let ipv4_addr_format = Pcre.regexp {|^(([1-9]\d{0,2}|0)\.){3}([1-9]\d{0,2}|0)$|} |