fix: Escape regex for embeds (#3907)

Fixes #3899
This commit is contained in:
Apoorv Mishra
2022-08-02 14:10:11 +05:30
committed by GitHub
parent 00481d2bfc
commit 294521f162
56 changed files with 256 additions and 29 deletions

View File

@@ -42,5 +42,17 @@ describe("Mindmeister", () => {
test("to not be enabled elsewhere", () => {
expect("https://mindmeister.com".match(match)).toBe(null);
expect("https://www.mindmeister.com/pricing".match(match)).toBe(null);
expect("https://www.mmttt/326377934".match(match)).toBe(null);
expect(
"https://www.mindmeisterrcom/maps/public_map_shell/326377934/paper-digital-or-online-mind-mapping".match(
match
)
).toBe(null);
expect("https://wwwwmm.tt/326377934".match(match)).toBe(null);
expect(
"https://wwwwmindmeister.com/maps/public_map_shell/326377934/paper-digital-or-online-mind-mapping".match(
match
)
).toBe(null);
});
});