fix: normalize backslashes in glob paths for Windows compatibility (#25613)
Co-authored-by: Pallav <[email protected]>
This commit is contained in:
1 parent
77a0d69c1a
commit
ea2036672b
1 file changed
+3
-1
@@ -11,8 +11,10 @@ const copyAppStoreStatic = () => {
|
||||
const SVG_HASHES = {};
|
||||
|
||||
staticFiles.forEach((file) => {
|
||||
// Normalize path separators for cross-platform compatibility (Windows uses backslashes)
|
||||
const normalizedFile = file.replace(/\\/g, "/");
|
||||
// Extract app name from path
|
||||
const appNameMatch = file.match(/app-store\/(.*?)\/static/);
|
||||
const appNameMatch = normalizedFile.match(/app-store\/(.*?)\/static/);
|
||||
if (!appNameMatch) return;
|
||||
|
||||
const appDirName = appNameMatch[1];
|
||||
|
||||
Reference in new issue
Block a user