-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing inconsistencies between emails and autoEmail #508
Fixing inconsistencies between emails and autoEmail #508
Conversation
lib/Email.js
Outdated
@@ -0,0 +1,10 @@ | |||
/* eslint-disable import/prefer-default-export */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppressing the prefer-default-import rule as this file is expected grow and have more functions similar to url.js
@Santhosh-Sellavel please add a comment here so you can be added as a reviewer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding myself as reviewer
This can be an additional code improvement but not mandatory requirement for this bug fix |
@abdulrahuman5196 This could still be used internally on other apps (Private Repos). |
Yes. Agree. That's why I am opposed to changing that, part of this bug. Maybe we can just add a comment that its deprecated, so that if in future anyone comes across this issue. They can start using the new regex we added. Better to be safe than sorry because we are not sure of those usages. |
Not required I guess, because the change we are doing is to be part of markdown i.e for messages formatting in New dot. This would not be used for Email Validation. |
I agree. Thank you for confirmation @Santhosh-Sellavel. Then only action item is "Do we move the new regex to CONST or follow markdown URLs pattern"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cristipaval LGTM, just one comment. Can you run PR Automation checks, if all good let's merge and continue testing on PR Against E/App
Co-authored-by: Santhoshkumar Sellavel <85645967+Santhosh-Sellavel@users.noreply.github.com>
Thank you @Santhosh-Sellavel. Updated the minor comment. @cristipaval Could you kindly start the Automation Workflows? It seems I can't start it myself. |
@abdulrahuman5196 Could you confirm why you added a new regex here for markdown emails specifically, i.e. does it do much that |
@cristipaval @Santhosh-Sellavel
Fixed Issues
$ Expensify/App#15621 (comment)
Tests
What unit/integration tests cover your change? What autoQA tests cover your change?
Added linked email cases to existing email test cases for below
Test markdown replacement for emails wrapped in bold/strikethrough/italic in multi-line
Test markdown replacement for emails wrapped in bold/strikethrough/italic in a single line
Test markdown replacement for emails containing bold/strikethrough/italic
What tests did you perform that validates your changed worked?
Web
Untitled.14.mp4
Mobile Web - Chrome
Untitled.15.mp4
Mobile Web - Safari
Untitled.16.mp4
Desktop
Untitled.17.mp4
iOS
Untitled.18.mp4
Android
Untitled.19.mp4
QA
Input the messages
Input:
Result:
Only 'abc@gmail.com' should be recognised as emailId
Input:
Result:
Only 'abc@gmail.com' should be recognised as emailId
Input:
Result:
The message should be recognised as 'test' with emailId as link
Areas involving emailIds