don't accept empty identifiers
This commit is contained in:
parent
41d7308ba8
commit
1b6d1de059
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ export class Link {
|
||||||
}
|
}
|
||||||
|
|
||||||
static _parse(identifier, eventId = undefined, clientId = null, viaServers = [], webInstances = {}) {
|
static _parse(identifier, eventId = undefined, clientId = null, viaServers = [], webInstances = {}) {
|
||||||
|
if (!identifier) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
let matches;
|
let matches;
|
||||||
matches = USERID_PATTERN.exec(identifier);
|
matches = USERID_PATTERN.exec(identifier);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
|
|
Loading…
Reference in a new issue