diff options
author | Martin Fischer <martin@push-f.com> | 2023-06-26 15:10:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 09:10:27 -0400 |
commit | 801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch) | |
tree | 145f840c570dd72258ef309e9d31f100a5aa5786 /cli/lsp/path_to_regex.rs | |
parent | ad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff) |
chore: fix typos (#19572)
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(); } } |