diff --git a/assets/JSON.webp b/assets/JSON.webp new file mode 100644 index 0000000..bbbb294 Binary files /dev/null and b/assets/JSON.webp differ diff --git a/file.js b/file.js index 8aac6ae..e66ae15 100644 --- a/file.js +++ b/file.js @@ -38,8 +38,8 @@ function filterFileName(fileName) { if (!/^[0-9a-zA-Z ... ]+$/.test(fileName) || fileName.split(".")[1] === undefined) { alert("The file name you've entered is unavailable."); return false; - } else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt")) { - alert("Only HTML, CSS, and JavaScript is supported in Artrium Code currently."); + } else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt" || fileName.split(".")[1] === "json")) { + alert("Only HTML, CSS, JavaScript, Text File, and JSON is supported in Artrium Code currently."); return false; } else { return true;