Fixed failing identity file import
This commit is contained in:
parent
2f6b356855
commit
d8d5817d7c
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue