add comment for REGEX_FLAGS

This commit is contained in:
Ali MJ Al-Nasrawy 2021-06-05 21:18:42 +03:00
parent 6a0fe738b6
commit f471c601d7
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ use crate::{IntoPattern, Resource, ResourcePath};
const MAX_DYNAMIC_SEGMENTS: usize = 16; 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)"; const REGEX_FLAGS: &str = "(?s-m)";
/// ResourceDef describes an entry in resources table /// ResourceDef describes an entry in resources table