From 07c54da628ec776627e68c25196539389c8d965c Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 5 Jun 2024 19:10:30 +0300 Subject: codecrafters submit [skip ci] --- src/extractor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extractor.rs') 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('/'); -- cgit v1.2.3