Skip to content

Commit

Permalink
fix(utils): unable to start on Windows11
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderSerio authored and xiejay97 committed Jun 2, 2024
1 parent 177011d commit 7b05dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/base64-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const reduceDir = (dirPath: string, paths: string[] = []) => {
if (statSync(filePath).isDirectory()) {
reduceDir(filePath, [...paths, file]);
} else if (/^base64\.[\s\S]+\.[\s\S]+$/.test(file) && file !== OUT_FILE) {
table.write([filePath.match(/(?<=packages\/)[\s\S]+?(?=\/)/)![0], file]);
table.write([(filePath.match(/(?<=packages\/)[\s\S]+?(?=\/)/) as string[])?.[0], file]);
const bitmap = readFileSync(filePath, { encoding: 'base64' });
output += String.raw` '${file.match(/(?<=\.)[\s\S]+(?=\.)/)![0]}': '${bitmap}',
`;
Expand Down

0 comments on commit 7b05dad

Please sign in to comment.