Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
multilineCommentsRE
1 parent 4a392f0 commit 51ed059Copy full SHA for 51ed059
packages/vite/src/node/utils.ts
@@ -912,7 +912,8 @@ export function toUpperCaseDriveLetter(pathName: string): string {
912
return pathName.replace(/^\w:/, (letter) => letter.toUpperCase())
913
}
914
915
-export const multilineCommentsRE = /\/\*(.|[\r\n])*?\*\//gm
+// Taken from https://stackoverflow.com/a/36328890
916
+export const multilineCommentsRE = /\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//gm
917
export const singlelineCommentsRE = /\/\/.*/g
918
export const requestQuerySplitRE = /\?(?!.*[\/|\}])/
919
0 commit comments