Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a9abf58

Browse files
authored
Update Permalinks.ts
1 parent 636b688 commit a9abf58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/permalinks/Permalinks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ export class RoomPermalinkCreator {
216216
if (this.room?.currentState) {
217217
const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, "");
218218
if (aclEvent && aclEvent.getContent()) {
219-
const getRegex = (hostname: string): RegExp =>
220-
new RegExp("^" + utils.globToRegexp(hostname) + "$");
219+
const getRegex = (hostname: string): RegExp => new RegExp("^" + utils.globToRegexp(hostname) + "$");
221220

222221
const denied = aclEvent.getContent<{ deny: string[] }>().deny;
223222
if (Array.isArray(denied)) {

0 commit comments

Comments
 (0)