Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Aug 13, 2024
1 parent 120861b commit e971797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-core/src/components/KeepAlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ function matches(pattern: MatchPattern, name: string): boolean {
if (isArray(pattern)) {
return pattern.some((p: string | RegExp) => matches(p, name))
} else if (isString(pattern)) {
return pattern.trim().split(/\s*,\s*/).includes(name)
return pattern
.trim()
.split(/\s*,\s*/)
.includes(name)
} else if (isRegExp(pattern)) {
return pattern.test(name)
}
Expand Down

0 comments on commit e971797

Please sign in to comment.