handling also an undefined value

This commit is contained in:
Mic 2025-09-09 23:36:00 +02:00
parent f833224b6a
commit 03f2cfafab

View file

@ -643,6 +643,7 @@ export function sanitizeChatGPTModelData(input) {
}
export function sanitizeChatGPTWebCustomData(input) {
if(!input) return '';
// Removes all characters that are not letters, numbers, dashes, or slashes
return input.replace(/[^\p{L}\p{N}\/-]+/gu, '');
}