Skip to content

Commit

Permalink
fix(projects): fix regexp: script setup
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jan 16, 2024
1 parent 3311302 commit 394ed79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MagicString from 'magic-string';

export function setRouteNamePageFile(code: string, _id: string, routeName: string) {
const SCRIPT_SETUP = /<script\s+setup[\s\S]*?>/;
const SCRIPT_SETUP = /<script.*setup.*>/;

if (!SCRIPT_SETUP.test(code)) {
return null;
Expand Down

0 comments on commit 394ed79

Please sign in to comment.