fixed regex check to allow code_c++ in config

This commit is contained in:
decaf 2020-12-08 10:08:08 -06:00
parent 6602022039
commit 5414902d54

View file

@ -1347,7 +1347,7 @@ exports.updateResultTags = functions.https.onCall((request, response) => {
function isConfigKeyValid(name) {
if (name === null || name === undefined || name === "") return false;
if (name.length > 30) return false;
return /^[0-9a-zA-Z_.\-#]+$/.test(name);
return /^[0-9a-zA-Z_.\-#+]+$/.test(name);
}
exports.saveConfig = functions.https.onCall((request, response) => {