allow @local:domain style mxids
This commit is contained in:
parent
995e59b973
commit
05d242cb5c
1 changed files with 1 additions and 2 deletions
|
@ -19,8 +19,7 @@ import MultiInviter from './utils/MultiInviter';
|
|||
|
||||
const emailRegex = /^\S+@\S+\.\S+$/;
|
||||
|
||||
// We allow localhost for mxids to avoid confusion
|
||||
const mxidRegex = /^@\S+:(?:\S+\.\S+|localhost)$/
|
||||
const mxidRegex = /^@\S+:\S+$/
|
||||
|
||||
export function getAddressType(inputText) {
|
||||
const isEmailAddress = emailRegex.test(inputText);
|
||||
|
|
Loading…
Reference in a new issue