diff --git a/main.js b/main.js index 97bb56c..c23bfd7 100644 --- a/main.js +++ b/main.js @@ -9,7 +9,7 @@ const position = {x: 4, y: 2, gravity: "NorthEast"} const metadatas = [] function createFilename(prideflag, text, now = false) { - return `${prideflag.name.en.toLowerCase()}-${text.replace("⋅", "_").replace(" ", "_").replace("\n", '-').toLowerCase()}${now?'-now':''}.png`; + return `${prideflag.name.en.toLowerCase()}-${text.replaceAll("⋅", "_").replaceAll(" ", "_").replaceAll("\n", '-').toLowerCase()}${now?'-now':''}.png`; } function createButton(source, x, y, text, gravity) {