From c09d1c71012b5ac284050bed300cd65382933e75 Mon Sep 17 00:00:00 2001 From: Steffen Date: Thu, 10 Dec 2020 21:37:18 +0100 Subject: [PATCH] fix regex issue --- src/store/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 65881e7..c2184b9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -88,7 +88,10 @@ export default new Vuex.Store({ const strippedRole = {}; for (let prop in role) { const value = role[prop]; - if (prop === "image" && value.match(new RegExp("^" + imageBase))) { + if ( + prop === "image" && + value.toLocaleLowerCase().includes(imageBase) + ) { continue; } if (prop !== "isCustom" && value !== customRole[prop]) {