don't accept empty identifiers

This commit is contained in:
Bruno Windels 2021-09-14 10:48:27 +02:00
parent 41d7308ba8
commit 1b6d1de059

View File

@ -131,6 +131,9 @@ export class Link {
}
static _parse(identifier, eventId = undefined, clientId = null, viaServers = [], webInstances = {}) {
if (!identifier) {
return null;
}
let matches;
matches = USERID_PATTERN.exec(identifier);
if (matches) {