From a9abf58ac3707a914d238a5b1cd22105e8919477 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 31 May 2023 12:55:14 +0100 Subject: [PATCH] Update Permalinks.ts --- src/utils/permalinks/Permalinks.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/permalinks/Permalinks.ts b/src/utils/permalinks/Permalinks.ts index db1114275a..56740e96a4 100644 --- a/src/utils/permalinks/Permalinks.ts +++ b/src/utils/permalinks/Permalinks.ts @@ -216,8 +216,7 @@ export class RoomPermalinkCreator { if (this.room?.currentState) { const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, ""); if (aclEvent && aclEvent.getContent()) { - const getRegex = (hostname: string): RegExp => - new RegExp("^" + utils.globToRegexp(hostname) + "$"); + const getRegex = (hostname: string): RegExp => new RegExp("^" + utils.globToRegexp(hostname) + "$"); const denied = aclEvent.getContent<{ deny: string[] }>().deny; if (Array.isArray(denied)) {