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