From 46e815b62078802a004dbe5608229371b8d23972 Mon Sep 17 00:00:00 2001 From: wenzhe Date: Sun, 8 Oct 2023 21:33:57 +0800 Subject: [PATCH] docs(linter): update --- crates/oxc_linter/src/rules/jest/valid_title.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_linter/src/rules/jest/valid_title.rs b/crates/oxc_linter/src/rules/jest/valid_title.rs index 47b7141cfbe78..dc595db2a2c51 100644 --- a/crates/oxc_linter/src/rules/jest/valid_title.rs +++ b/crates/oxc_linter/src/rules/jest/valid_title.rs @@ -66,7 +66,7 @@ fn compile_matcher_patterns( .as_array() .map_or_else( || { - // for `{ "describe": "/pattern/u" }` + // for `{ "describe": "/pattern/" }` let obj = matcher_patterns.as_object()?; let mut map: HashMap = HashMap::new(); for (key, value) in obj { @@ -81,7 +81,7 @@ fn compile_matcher_patterns( Some(map) }, |value| { - // for `["/pattern/u", "message"]` + // for `["/pattern/", "message"]` let mut map: HashMap = HashMap::new(); let v = &compile_matcher_pattern(MatcherPattern::Vec(value))?; map.insert(MatchKind::Describe, v.clone()); @@ -92,7 +92,7 @@ fn compile_matcher_patterns( ) .map_or_else( || { - // for `"/pattern/u"` + // for `"/pattern/"` let string = matcher_patterns.as_str()?; let mut map: HashMap = HashMap::new(); let v = &compile_matcher_pattern(MatcherPattern::String(