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

Commit

Permalink
Update Permalinks.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored May 31, 2023
1 parent 636b688 commit a9abf58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/permalinks/Permalinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a9abf58

Please sign in to comment.