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 ebf011f commit 636b688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/permalinks/Permalinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 636b688

Please sign in to comment.