don't accept empty identifiers
This commit is contained in:
parent
41d7308ba8
commit
1b6d1de059
@ -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 New Issue
Block a user