mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 14:34:20 +00:00
Add missing allowed board name characters
This commit is contained in:
parent
b5bfc24a32
commit
e6811518dc
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ const boardTemplate = new templating.BoardTemplate(path.join(config.WEBROOT, 'bo
|
|||
const indexTemplate = new templating.Template(path.join(config.WEBROOT, 'index.html'));
|
||||
|
||||
function validateBoardName(boardName) {
|
||||
if (/^[\w%]*$/.test(boardName)) return boardName;
|
||||
if (/^[\w%\-_~]*$/.test(boardName)) return boardName;
|
||||
throw new Error("Illegal board name: " + boardName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue