Merged PR 2134: regex update to include apostrophe

regex update to include apostrophe

Related work items: #21099
This commit is contained in:
Robert Bond
2026-02-27 09:42:32 +00:00
3 changed files with 3 additions and 3 deletions
@@ -1088,7 +1088,7 @@ export const RenderFileUpload = (field) => {
setRejectedFiles([]); // Clear any previously rejected file errorsss
};
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—]+$/;
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—']+$/;
const validateFilename = (file, t) => {
const name = file.name;
+1 -1
View File
@@ -2175,7 +2175,7 @@ const RenderFileUpload = (field) => {
setRejectedFiles([]); // Clear any previously rejected file errorsss
};
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—]+$/;
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—']+$/;
const validateFilename = (file, t) => {
const name = file.name;
+1 -1
View File
@@ -11,7 +11,7 @@ import { fileTypeFromBuffer } from "file-type";
import fs from "fs";
import path from "path";
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—]+$/;
const FILENAME_ALLOWED = /^[A-Za-z0-9 ._\-:()—']+$/;
function validateFilenameServer(originalFilename) {
const name = path.basename(originalFilename || "");