mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
tune regex to only accept whitespace
This commit is contained in:
parent
a9cfbe1072
commit
46c138dfd8
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function getBoardnamefromToken(token, boardNameIn) {
|
|||
var oneHasBoardName = false;
|
||||
var oneHasCorretBoardname = false;
|
||||
|
||||
var regex = new RegExp(":.*"+boardNameIn+"$","gm");
|
||||
var regex = new RegExp(":\ *"+boardNameIn+"$","gm");
|
||||
console.log(regex);
|
||||
if (roles) {
|
||||
for (var r in roles) {
|
||||
|
|
Loading…
Reference in a new issue