-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix problems with parsing links with the same emails inside link block
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -822,6 +822,9 @@ test('Test markdown style email link with various styles', () => { | |
+ '[ Expensify ]([email protected])' // edge spaces in [] | ||
+ '[ Expensify Email ]([email protected])' // space between words in [] | ||
+ '[[email protected]]([email protected])' // same email between [] and () | ||
+ '[[email protected]](mailto:[email protected])' // same email between [] and () with mailto: in href | ||
+ '[mailto:[email protected]]([email protected])' // same email between [] and () with mailto: in text | ||
+ '[mailto:[email protected]](mailto:[email protected])' // same email between [] and () with mailto: in text and href | ||
+ '[[email protected]]([email protected])' // different emails between [] and () | ||
+ '[(Expensify)]([email protected])' // () in [] | ||
+ '[Expensify [Test]([email protected]) Test]([email protected])' // []() in [] | ||
|
@@ -839,6 +842,9 @@ test('Test markdown style email link with various styles', () => { | |
+ '<a href="mailto:[email protected]">Expensify</a>' | ||
+ '<a href="mailto:[email protected]">Expensify Email</a>' | ||
+ '<a href="mailto:[email protected]">[email protected]</a>' | ||
+ '<a href="mailto:[email protected]">[email protected]</a>' | ||
+ '<a href="mailto:[email protected]">mailto:[email protected]</a>' | ||
+ '<a href="mailto:[email protected]">mailto:[email protected]</a>' | ||
+ '<a href="mailto:[email protected]">[email protected]</a>' | ||
+ '<a href="mailto:[email protected]">(Expensify)</a>' | ||
+ '[Expensify <a href="mailto:[email protected]">Test</a> Test](<a href="mailto:[email protected]">[email protected]</a>)' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters