-
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
Fix double backticks #827
Merged
Merged
Fix double backticks #827
Conversation
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
All contributors have signed the CLA ✍️ ✅ |
melvin-bot
bot
requested review from
madmax330
and removed request for
a team
December 30, 2024 09:50
I have read the CLA Document and I hereby sign the CLA |
CLABotify
added a commit
to Expensify/CLA
that referenced
this pull request
Dec 30, 2024
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
50 tasks
madmax330
approved these changes
Dec 31, 2024
@QichenZhu can you update the QA section? |
@madmax330 Thanks, done! |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the issue that the inline code block regex doesn't match two backticks with no content between them.
For example, in
the two backticks in the middle are not regarded as a pair, which causes the word hi after them to be part of the code block. However, the user expects the word hi not to be part of the code block.
Fixed Issues
$ Expensify/App#53573
A similar issue is also mentioned in this comment.
Tests
New test case added
Existing test cases updated
Test inline code blocks with double backticks
Test inline code blocks with triple backticks
Test inline code blocks with two backticks
Test for backticks only tab characters inside it
Test for inline code block with triple backtick with spaces as content
Send the below message in Expensify.
hello
`` hi`Verify that the word hi is not rendered as part of a code block.
QA
Send the below message in Expensify.
hello
`` hi`Verify that the word hi is not rendered as part of a code block.