Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 25, 2024
1 parent 9210f5d commit 8bf1b06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ ${dts}`.trim()}\n`
const multilineCommentsRE = /\/\*.*?\*\//gms
const singlelineCommentsRE = /\/\/.*$/gm
const dtsReg = /declare\s+global\s*{(.*?)[\n\r]}/s
const componentCustomPropertiesReg
= /interface\s+ComponentCustomProperties\s*{(.*?)[\n\r]}/gs
const componentCustomPropertiesReg = /interface\s+ComponentCustomProperties\s*{(.*?)[\n\r]}/gs
function parseDTS(dts: string) {
dts = dts
.replace(multilineCommentsRE, '')
Expand Down

0 comments on commit 8bf1b06

Please sign in to comment.