Repository navigation
fix: correct newline insertion logic in text processing - #744
Merged
hayata-suenaga merged 1 commit intoJul 11, 2024
Merged
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Amoralchik
force-pushed
the
Chat-Incorrect-format-after-paste
branch
from
July 4, 2024 19:07
7fa9aac to
f2b7795
Compare
Contributor
Author
|
We can also attempt to modify the code this way: if (text.match(/[\n|>]?[>]?["# "]?[\s]?$/) || index === splitText.length - 1) {
joinedText += text;
}However, I'm not very proficient with regular expressions |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
|
@hayata-suenaga @rushatgabhane looks like this PR is for an issue y'all are managing. |
puneetlath
requested review from
hayata-suenaga
and removed request for
puneetlath
July 5, 2024 15:55
rushatgabhane
approved these changes
Jul 8, 2024
Member
There was a problem hiding this comment.
looks good. @Amoralchik please create a PR on App to bump expensify-common version after this has merged
|
🚀Published to npm in v2.0.42 |
This file contains hidden or 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
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.
Details
Chat - Incorrect format is copied to clipboard after copying an edited header with bold markdown
Fixed Issues
$ Expensify/App#43931
PROPOSAL: Expensify/App#43931 (comment)
Tests
# *Header* s *Bold* _emphasis_Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
See MacOS: Chrome / Safari
Android: mWeb Chrome
See MacOS: Chrome / Safari
iOS: Native
See MacOS: Chrome / Safari
iOS: mWeb Safari
See MacOS: Chrome / Safari
Details
2024-06-28.13-15-20.mp4
MacOS: Chrome / Safari
MacOS: Desktop
See MacOS: Chrome / Safari