mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
allow @local:domain style mxids
This commit is contained in:
parent
995e59b973
commit
05d242cb5c
@ -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…
x
Reference in New Issue
Block a user