Update Permalinks.ts

t3chguy/dedup-icons-17oct
Michael Telatynski 2023-05-31 12:48:36 +01:00 committed by GitHub
parent ebf011fae9
commit 636b6884e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ export class RoomPermalinkCreator {
const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, ""); const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, "");
if (aclEvent && aclEvent.getContent()) { if (aclEvent && aclEvent.getContent()) {
const getRegex = (hostname: string): RegExp => const getRegex = (hostname: string): RegExp =>
new RegExp("^" + utils.globToRegexp(hostname, false) + "$"); new RegExp("^" + utils.globToRegexp(hostname) + "$");
const denied = aclEvent.getContent<{ deny: string[] }>().deny; const denied = aclEvent.getContent<{ deny: string[] }>().deny;
if (Array.isArray(denied)) { if (Array.isArray(denied)) {