Fixed failing identity file import

This commit is contained in:
WolverinDEV 2020-03-19 10:37:36 +01:00
parent 2f6b356855
commit d8d5817d7c

View file

@ -461,9 +461,10 @@ namespace profiles.identities {
}
if(!identity) throw "missing identity keyword";
if(identity[0] == "\"" && identity[identity.length - 1] == "\"")
identity = identity.substr(1, identity.length - 2);
identity = identity.match(/([0-9]+V[0-9a-zA-Z]+[=]+)/)[1];
if(!identity) throw "invalid identity key value";
debugger;
const result = parse_string(identity);
result.name = name || result.name;
return result;