diff --git a/web/src/components/filePathInputModal.tsx b/web/src/components/filePathInputModal.tsx index f5bcca6..cfe7975 100644 --- a/web/src/components/filePathInputModal.tsx +++ b/web/src/components/filePathInputModal.tsx @@ -23,7 +23,7 @@ const FilePathInputModal = ({ const handleChange = (event: React.ChangeEvent) => { const value = event.target.value - const specialChars = /[`!@#$%^&*()_+\-=[\]{};':"\\|,<>?~]/ + const specialChars = /[`!@#$%^&*()+\-=[\]{};':"\\|,<>?~]/ const fileExtension = /\.(exe|sh|htaccess)$/i if (specialChars.test(value)) { diff --git a/web/src/components/nameInputModal.tsx b/web/src/components/nameInputModal.tsx index 3ae8364..a3bff3a 100644 --- a/web/src/components/nameInputModal.tsx +++ b/web/src/components/nameInputModal.tsx @@ -44,7 +44,7 @@ const NameInputModal = ({ const value = event.target.value const folderNameRegex = /[`!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/ - const fileNameRegex = /[`!@#$%^&*()_+\-=[\]{};':"\\|,<>/?~]/ + const fileNameRegex = /[`!@#$%^&*()+\-=[\]{};':"\\|,<>/?~]/ const fileNameExtensionRegex = /.(exe|sh|htaccess)$/i const specialChars = isFolder ? folderNameRegex : fileNameRegex