We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a58ca commit 477f303Copy full SHA for 477f303
src/util.ts
@@ -378,7 +378,7 @@ export class Util {
378
};
379
}
380
381
- // 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
382
public static EscapeStringForUserId(localpart: string) {
383
// NOTE: Currently Matrix accepts / in the userId, although going forward it will be removed.
384
const badChars = new Set(localpart.replace(/([a-z]|[0-9]|-|\.|=|_)+/g, ""));
0 commit comments