fix: use replaceAll to replace win32's sep

pull/3741/head
Windson97 1 year ago committed by GitHub
parent ebf1bb4f73
commit a73d015950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,7 +22,7 @@ export function processIncludesRelativePath(
.resolve(includeFileDir, p1) .resolve(includeFileDir, p1)
.substring(resolvedSrcDir.length) .substring(resolvedSrcDir.length)
// replace win32's separator to / // replace win32's separator to /
const p1PathInVite = p1Path.replace(path.win32.sep, '/') const p1PathInVite = p1Path.replaceAll(path.win32.sep, '/')
return '(' + p1PathInVite + ')' return '(' + p1PathInVite + ')'
} catch { } catch {
return m return m

Loading…
Cancel
Save