simplify regex expression strings

This commit is contained in:
Folkert 2023-10-07 15:34:04 +02:00
parent 6ab54c02e2
commit 60afb79cc7
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 7 additions and 7 deletions

View file

@ -149,10 +149,10 @@ lazy_static! {
/// inst # instantiate the given generic instance
/// ```
static ref RE_TYPE_QUERY: Regex =
Regex::new(r#"(?P<where>\^+)(?:\{(?P<directives>.*?)\})?"#).unwrap();
Regex::new(r"(?P<where>\^+)(?:\{(?P<directives>.*?)\})?").unwrap();
static ref RE_DIRECTIVE : Regex =
Regex::new(r#"(?:-(?P<sub>\d+))|(?P<inst>inst)"#).unwrap();
Regex::new(r"(?:-(?P<sub>\d+))|(?P<inst>inst)").unwrap();
}
/// Markers of nested query lines, that should be skipped.