fix: update regex in validateChatGPTWebCustomData to allow additional characters. see #277 #168

This commit is contained in:
Mic 2025-04-30 00:19:00 +02:00
parent 483d8a14d2
commit f043f2e93b

View file

@ -412,7 +412,7 @@ export async function checkSparksPresence() {
}
export function validateChatGPTWebCustomData(data) {
return /^\/g\/[a-zA-Z0-9-]+$/.test(data) || data == '';
return /^\/g\/[a-zA-Z0-9/-]+$/.test(data) || data == '';
}
export function sanitizeChatGPTModelData(input) {