From 7e9a5c9e12102cd7bad59f73d2f7a15f75ca4b38 Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Tue, 5 Nov 2024 20:20:37 +0800 Subject: [PATCH] fix: syntax regex --- packages/language-core/lib/parsers/vueCompilerOptions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-core/lib/parsers/vueCompilerOptions.ts b/packages/language-core/lib/parsers/vueCompilerOptions.ts index 00f5fae408..6f65c18225 100644 --- a/packages/language-core/lib/parsers/vueCompilerOptions.ts +++ b/packages/language-core/lib/parsers/vueCompilerOptions.ts @@ -1,7 +1,7 @@ import * as ts from 'typescript'; import type { Sfc, VueCompilerOptions } from '../types'; -const syntaxReg = /^\/\*\*\s*@vue\$(?.+) (?.+)\s*\*\/$/; +const syntaxReg = /^\/\*\*\s*@vue\$(?.+?) (?.+)\s*\*\/$/; export function parseVueCompilerOptions( ts: typeof import('typescript'),