diff --git a/src/utils/permalinks/Permalinks.ts b/src/utils/permalinks/Permalinks.ts index 6a76f66b0e..db1114275a 100644 --- a/src/utils/permalinks/Permalinks.ts +++ b/src/utils/permalinks/Permalinks.ts @@ -217,7 +217,7 @@ export class RoomPermalinkCreator { const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, ""); if (aclEvent && aclEvent.getContent()) { const getRegex = (hostname: string): RegExp => - new RegExp("^" + utils.globToRegexp(hostname, false) + "$"); + new RegExp("^" + utils.globToRegexp(hostname) + "$"); const denied = aclEvent.getContent<{ deny: string[] }>().deny; if (Array.isArray(denied)) {