tune regex to only accept whitespace

This commit is contained in:
Entwicklung 2022-09-04 19:31:22 +02:00
parent a9cfbe1072
commit 46c138dfd8

View file

@ -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) {