瀏覽代碼

Allow parentheses in board names

dev_h
Ophir LOJKINE 5 年之前
父節點
當前提交
3af91ce7ab
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      server/server.js

+ 1
- 1
server/server.js 查看文件

@@ -69,7 +69,7 @@ const boardTemplate = new templating.BoardTemplate(path.join(config.WEBROOT, 'bo
69 69
 const indexTemplate = new templating.Template(path.join(config.WEBROOT, 'index.html'));
70 70
 
71 71
 function validateBoardName(boardName) {
72
-	if (/^[\w%\-_~]*$/.test(boardName)) return boardName;
72
+	if (/^[\w%\-_~()]*$/.test(boardName)) return boardName;
73 73
 	throw new Error("Illegal board name: " + boardName);
74 74
 }
75 75
 

Loading…
取消
儲存