Archived
fix: always use underscore
This commit is contained in:
1 parent
dd41581360
commit
917b3faf90
1 file changed
+1
-1
@@ -9,7 +9,7 @@ export const toSafeName = (name: string) => {
|
|||||||
.replace(/[\x00-\x1F\x7F]/g, "_")
|
.replace(/[\x00-\x1F\x7F]/g, "_")
|
||||||
.replace(/[\s-]+/g, "_")
|
.replace(/[\s-]+/g, "_")
|
||||||
.replace(/_+/g, "_")
|
.replace(/_+/g, "_")
|
||||||
.replace(/[. ]+$/g, "");
|
.replace(/[. ]+$/g, "_");
|
||||||
};
|
};
|
||||||
|
|
||||||
const themeInfo = JSON.parse(fs.readFileSync("theme.json", "utf-8"));
|
const themeInfo = JSON.parse(fs.readFileSync("theme.json", "utf-8"));
|
||||||
|
|||||||
Reference in new issue
Block a user