diff options
Diffstat (limited to 'cli/lsp/path_to_regex.rs')
-rw-r--r-- | cli/lsp/path_to_regex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/path_to_regex.rs b/cli/lsp/path_to_regex.rs index 01dbc0287..9fc05067f 100644 --- a/cli/lsp/path_to_regex.rs +++ b/cli/lsp/path_to_regex.rs @@ -626,7 +626,7 @@ pub fn tokens_to_regex( route.push('$'); } } else { - let is_end_deliminated = match maybe_end_token { + let is_end_delimited = match maybe_end_token { Some(Token::String(mut s)) => { if let Some(c) = s.pop() { delimiter.contains(c) @@ -642,7 +642,7 @@ pub fn tokens_to_regex( write!(route, r"(?:{delimiter}(?={ends_with}))?").unwrap(); } - if !is_end_deliminated { + if !is_end_delimited { write!(route, r"(?={delimiter}|{ends_with})").unwrap(); } } |