Skip to content
Snippets Groups Projects
Commit 1b6d1de0 authored by Bruno Windels's avatar Bruno Windels
Browse files

don't accept empty identifiers

parent 41d7308b
Branches
Tags
No related merge requests found
...@@ -131,6 +131,9 @@ export class Link { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment