-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from eh2077/21234-fix-no-content-added-error-…
…for-empty-alias-of-email-markdown fix: 'No content to add' error if we send empty alias for email
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 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 |
---|---|---|
|
@@ -509,8 +509,9 @@ test('Test markdown style email link with various styles', () => { | |
+ '[Expensify!]([email protected]) ' | ||
+ '[Expensify?]([email protected]) ' | ||
+ '[Applause]([email protected]) ' | ||
+ '[]([email protected])' // empty in [] | ||
+ '[ ]([email protected])' // only spaces in [] | ||
+ '[]([email protected])' // only parse autoEmail in () | ||
+ '[ ]([email protected])' // only parse autoEmail in () and keep spaces in [] | ||
+ '[ \n ]([email protected])' // only parse autoEmail in () and keep spaces in [] | ||
+ '[ Expensify ]([email protected])' // edge spaces in [] | ||
+ '[ Expensify Email ]([email protected])' // space between words in [] | ||
+ '[[email protected]]([email protected])' // same email between [] and () | ||
|
@@ -526,8 +527,9 @@ test('Test markdown style email link with various styles', () => { | |
+ '<a href="mailto:[email protected]">Expensify!</a> ' | ||
+ '<a href="mailto:[email protected]">Expensify?</a> ' | ||
+ '<a href="mailto:[email protected]">Applause</a> ' | ||
+ '<a href="mailto:[email protected]"></a>' | ||
+ '<a href="mailto:[email protected]"></a>' | ||
+ '[](<a href="mailto:[email protected]">[email protected]</a>)' | ||
+ '[ ](<a href="mailto:[email protected]">[email protected]</a>)' | ||
+ '[ <br /> ](<a href="mailto:[email protected]">[email protected]</a>)' | ||
+ '<a href="mailto:[email protected]">Expensify</a>' | ||
+ '<a href="mailto:[email protected]">Expensify Email</a>' | ||
+ '<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