-
Notifications
You must be signed in to change notification settings - Fork 137
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
fix: mentions are not shown in invite user or remove user report #831
Conversation
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Re-assigning to @nkuoch because the proposal is pretty involved and she is the engineer managing this. |
@daledah please also add this change to PR details update |
@@ -193,6 +199,9 @@ test('Mention report html to text', () => { | |||
|
|||
testString = '<mention-report reportID="1234" />'; | |||
expect(parser.htmlToText(testString, extras)).toBe('#room-name'); | |||
|
|||
testString = '<mention-report reportID=1234/>'; | |||
expect(parser.htmlToText(testString, extras)).toBe('#room-name'); |
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.
Let's add more test cases here
<mention-report reportID=1234></mention-report>
<mention-report reportID="1234"></mention-report>
@ahmedGaber93 i updated |
'1234': '[email protected]', | ||
1234: '[email protected]', |
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.
Can you explain why this change? I think it is not affected
const testString2 = '<video data-expensify-source="https://www.expensify.com/chat-attachments/123/test.mp4" data-expensify-width=720 data-expensify-height=1640 data-expensify-duration=20>test.mp4</video>'; | ||
const testString2 = | ||
'<video data-expensify-source="https://www.expensify.com/chat-attachments/123/test.mp4" data-expensify-width=720 data-expensify-height=1640 data-expensify-duration=20>test.mp4</video>'; |
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.
I think this change is not related with this PR
@ahmedGaber93 I updated. My linter was acting on its own. |
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.
LGTM!
@nkuoch I just review the changes but not tested the package with E/App (we will do it in Expensify/App#55699 when bump expensify-common), I think the test cases is enough here. Please let me know if you want me test it in E/App. Thanks! |
This PR fixes the issue that the mention report and mention user sometimes has no quotation marks
Update
htmlToTextRules
userMention and reportMention regex to work for both<selfClosedTag />
and non self closing tags<openTag></closeTag>
to be like htmlToMarkdownRulesExample:
Fixed Issues
$ Expensify/App#54630
Tests
New test case added
QA
Same as tests