mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-10 05:17:03 +08:00
fixed regex check to allow code_c++ in config
This commit is contained in:
parent
6602022039
commit
5414902d54
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue