-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix search keyword is shown in multiline #57729
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 search keyword is shown in multiline #57729
Conversation
@@ -3248,7 +3248,7 @@ const CONST = { | |||
EMOJI_NAME: /:[\p{L}0-9_+-]+:/gu, | |||
EMOJI_SUGGESTIONS: /:[\p{L}0-9_+-]{1,40}$/u, | |||
AFTER_FIRST_LINE_BREAK: /\n.*/g, | |||
LINE_BREAK: /\r\n|\r|\n/g, | |||
LINE_BREAK: /\r\n|\r|\n|\u2028/g, |
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.
When I copy from Mac notes app, the new line is https://www.compart.com/en/unicode/U+2028
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2025-03-05_19.49.49.mp4Android: mWeb Chromeandroid-chrome-2025-03-05_19.56.41.mp4iOS: Nativeios-app-2025-03-05_17.54.21.mp4iOS: mWeb Safariios-safari-2025-03-05_17.56.28.mp4MacOS: Chrome / Safaridesktop-chrome-2025-03-05_17.09.21.mp4MacOS: Desktopdesktop-app-2025-03-05_17.13.34.mp4 |
Looks a bit strange when you switch between tabs after pasting as the extra space gets stripped: desktop-chrome-switching-2025-03-05_17.10.53.mp4(I guess this is basically what we already discussed on the issue) |
cc @Expensify/design for your thoughts. The only thing that stands out to me is this minor issue, but I don't think it's necessarily a big deal as it only happens if you don't tap on the search router below to perform the search. Pasting in the desktop-chrome-2025-03-06_10.08.31.mp4 |
Note that if we want to change that behavior, we should do it on a separate issue.
No need to paste the text, you can type multiple spaces and the same thing happen. |
This feels pretty okay to me personally, mostly because I think a lot of this is feeling edge-casey and it doesn't feel strange to me that the app might strip away some of my extra spaces. |
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!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Gonals in version: 9.1.10-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Explanation of Change
Fixed Issues
$ #57212
PROPOSAL: #57212 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4