mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
refactor(cli,ext,ops): cleanup regex
with lazy-regex
(#17296)
- bump deps: the newest `lazy-regex` need newer `oncecell` and `regex` - reduce `unwrap` - remove dep `lazy_static` - make more regex cached --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
19c3e4f6dc
commit
d790ea7d53
23 changed files with 96 additions and 91 deletions
|
@ -37,7 +37,7 @@ use std::fmt::Write as _;
|
|||
use std::iter::Peekable;
|
||||
|
||||
static ESCAPE_STRING_RE: Lazy<Regex> =
|
||||
Lazy::new(|| Regex::new(r"([.+*?=^!:${}()\[\]|/\\])").unwrap());
|
||||
lazy_regex::lazy_regex!(r"([.+*?=^!:${}()\[\]|/\\])");
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
enum TokenType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue