Skip to content

Commit

Permalink
update to ID match
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinptc committed Feb 3, 2021
1 parent fb31de9 commit f4347a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ exports.getVideoDir = getVideoDir;

// Ensures id is alphanumeric or -_
function isValidId(id) {
return id.match(/^[A-Za-z0-9_-]+$/);
return id.match(/^[A-Za-z0-9_ -]+$/);
}

exports.isValidId = isValidId;
Expand Down

0 comments on commit f4347a0

Please sign in to comment.