You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Update finite automate to match user identifiers as per spec (#10798)
This commit is contained in:
committed by
GitHub
parent
dc9a00f280
commit
3692de0460
@ -303,6 +303,22 @@ describe("linkify-matrix", () => {
|
||||
|
||||
describe("userid plugin", () => {
|
||||
genTests("@");
|
||||
|
||||
it("allows dots in localparts", () => {
|
||||
const test = "@test.:matrix.org";
|
||||
const found = linkify.find(test);
|
||||
expect(found).toEqual([
|
||||
{
|
||||
href: test,
|
||||
type: "userid",
|
||||
value: test,
|
||||
start: 0,
|
||||
end: test.length,
|
||||
|
||||
isLink: true,
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("matrix uri", () => {
|
||||
|
Reference in New Issue
Block a user