From f471c601d7a95db35251c34323905b27bb7fdd08 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Sat, 5 Jun 2021 21:18:42 +0300 Subject: [PATCH] add comment for REGEX_FLAGS --- actix-router/src/resource.rs | 3 +++ 1 file changed, 3 insertions(+) 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