Skip to content

Commit f2fa024

Browse files
committed
fix: fix vetur build script
1 parent a81f3bc commit f2fa024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/buildVscodeHints.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const classes = getTypesClasses(types)
44

55
function getTypesClasses (types) {
66
let classes = {}
7-
const rawClasses = types.replace(/(\r|\n)/ig, '').match(/(.*?class).*?(})/g)
7+
const rawClasses = types.replace(/(\n|\r)/ig, '')
8+
.match(/(export declare|declare class).*?(})/g)
89
rawClasses.forEach(rawClass => {
910
const name = rawClass.match(/(?<=class\s+).*?(?=\s+extends)/gs)[0]
1011

0 commit comments

Comments
 (0)