Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commitadff008

Browse files
committed
refactor: use isRegExp for safer check
1 parent9f576aa commitadff008

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/core/vdom/patch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
isUndef,
2424
isTrue,
2525
makeMap,
26+
isRegExp,
2627
isPrimitive
2728
}from'../util/index'
2829

@@ -123,7 +124,7 @@ export function createPatchFunction (backend) {
123124
!(
124125
config.ignoredElements.length&&
125126
config.ignoredElements.some(ignore=>{
126-
returnignoreinstanceofRegExp
127+
returnisRegExp(ignore)
127128
?ignore.test(tag)
128129
:ignore===tag
129130
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp