We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test
1 parent 3fb59af commit 47f6715Copy full SHA for 47f6715
packages/component-meta/lib/base.ts
@@ -315,7 +315,7 @@ ${commandLine.vueOptions.target < 3 ? vue2TypeHelpersCode : typeHelpersCode}
315
316
return resolveNestedProperties(prop);
317
})
318
- .filter(prop => !prop.name.match(propEventRegex));
+ .filter(prop => !propEventRegex.test(prop.name));
319
}
320
321
// fill global
packages/language-core/lib/plugins/file-vue.ts
@@ -47,7 +47,7 @@ const plugin: VueLanguagePlugin = ({ vueCompilerOptions }) => {
47
48
// #3449
49
const endTagRegex = new RegExp(`</\\s*${hitBlock.type}\\s*>`);
50
- const insertedEndTag = !!oldContent.match(endTagRegex) !== !!newContent.match(endTagRegex);
+ const insertedEndTag = endTagRegex.test(oldContent) !== endTagRegex.test(newContent);
51
if (insertedEndTag) {
52
return;
53
0 commit comments