Skip to content

Commit

Permalink
docs(linter): update
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven committed Oct 8, 2023
1 parent cbb15b4 commit 46e815b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_linter/src/rules/jest/valid_title.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<MatchKind, CompiledMatcherAndMessage> = HashMap::new();
for (key, value) in obj {
Expand All @@ -81,7 +81,7 @@ fn compile_matcher_patterns(
Some(map)
},
|value| {
// for `["/pattern/u", "message"]`
// for `["/pattern/", "message"]`
let mut map: HashMap<MatchKind, CompiledMatcherAndMessage> = HashMap::new();
let v = &compile_matcher_pattern(MatcherPattern::Vec(value))?;
map.insert(MatchKind::Describe, v.clone());
Expand All @@ -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<MatchKind, CompiledMatcherAndMessage> = HashMap::new();
let v = &compile_matcher_pattern(MatcherPattern::String(
Expand Down

0 comments on commit 46e815b

Please sign in to comment.