Skip to content

Commit

Permalink
chore: fix broken link comment
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Falco <seth@falco.fun>
  • Loading branch information
SethFalco committed Jul 5, 2023
1 parent 8272253 commit b791258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class Util {
};
}

// Taken from https://github.com/matrix-org/matrix-appservice-bridge/blob/master/lib/models/users/matrix.js
// Taken from https://github.com/matrix-org/matrix-appservice-bridge/blob/master/src/models/users/matrix.ts
public static EscapeStringForUserId(localpart: string) {
// NOTE: Currently Matrix accepts / in the userId, although going forward it will be removed.
const badChars = new Set(localpart.replace(/([a-z]|[0-9]|-|\.|=|_)+/g, ""));
Expand Down

0 comments on commit b791258

Please sign in to comment.