diff --git a/actix-router/src/resource.rs b/actix-router/src/resource.rs index bed156ce..d0caaebf 100644 --- a/actix-router/src/resource.rs +++ b/actix-router/src/resource.rs @@ -10,6 +10,9 @@ use crate::{IntoPattern, Resource, ResourcePath}; const MAX_DYNAMIC_SEGMENTS: usize = 16; +/// Regex flags to allow '.' in regex to match '\n' +/// +/// See the docs under: https://docs.rs/regex/1.5.4/regex/#grouping-and-flags const REGEX_FLAGS: &str = "(?s-m)"; /// ResourceDef describes an entry in resources table