Skip to content

Commit 7b05dad

Browse files
CoderSerioxiejay97
authored andcommitted
fix(utils): unable to start on Windows11
1 parent 177011d commit 7b05dad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/base64-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const reduceDir = (dirPath: string, paths: string[] = []) => {
2424
if (statSync(filePath).isDirectory()) {
2525
reduceDir(filePath, [...paths, file]);
2626
} else if (/^base64\.[\s\S]+\.[\s\S]+$/.test(file) && file !== OUT_FILE) {
27-
table.write([filePath.match(/(?<=packages\/)[\s\S]+?(?=\/)/)![0], file]);
27+
table.write([(filePath.match(/(?<=packages\/)[\s\S]+?(?=\/)/) as string[])?.[0], file]);
2828
const bitmap = readFileSync(filePath, { encoding: 'base64' });
2929
output += String.raw` '${file.match(/(?<=\.)[\s\S]+(?=\.)/)![0]}': '${bitmap}',
3030
`;

0 commit comments

Comments
 (0)