diff options
Diffstat (limited to 'src/extractor.rs')
| -rw-r--r-- | src/extractor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extractor.rs b/src/extractor.rs index edc7b2e..9b53215 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -6,7 +6,7 @@ pub fn build_regex_from_path(path_template: &str) -> Regex { for component in path_template.split('/') { if component.starts_with(':') { // Replace placeholder with regex to capture alphanumeric, underscores, or hyphens - regex_string.push_str("/([a-zA-Z0-9_-]+)"); + regex_string.push_str("/([a-zA-Z0-9_.-]+)"); } else if !component.is_empty() { // Escape and add literal components to the regex regex_string.push('/'); |
