added underscore to category format check

This commit is contained in:
Joe Dowd
2020-08-31 03:09:47 +01:00
parent aa878482d3
commit 00534d91d4
2 changed files with 85 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ module.exports = (req, res) => {
// get user categories not already submitted that match accepted format
let categoriesToMark = categories.filter((category) => {
return !!category.match(/^[a-zA-Z]+$/);
return !!category.match(/^[_a-zA-Z]+$/);
}).filter((category) => {
return noSegmentList.indexOf(category) === -1;
});