fix regex issue

This commit is contained in:
Steffen 2020-12-10 21:37:18 +01:00
parent 1991401fdb
commit c09d1c7101
1 changed files with 4 additions and 1 deletions

View File

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