You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-03-13] Empty line appears both in report and in LHN if # is followed by two or more spaces in multiline message #15372
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staff
#
The above # followed by two or more spaces will be translated to an empty line
Notice '# ' in the first line is displayed as a line break instead of text '# ' and message preview in LHN is empty
Expected Result:
The first line of the message and message preview is LHN should be '# '
Actual Result:
The first line of the message is displayed as an empty line and message preview in LHN is empty as well
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.2.75-0 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:
changed the title [-]Empty line appears both in report and in LHN if # is followed by two or more spaces in multiline message[/-][+][HOLD for payment 2023-03-13] Empty line appears both in report and in LHN if # is followed by two or more spaces in multiline message[/+]on Mar 6, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.78-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-03-13. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@Gonals] Propose regression test steps to ensure the same bug will not reach production again.
I think this was a very specific corner case. No additional steps are really needed.
[@NicMendonca] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staff
Activity
MelvinBot commentedon Feb 22, 2023
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.MelvinBot commentedon Feb 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Gonals commentedon Feb 23, 2023
Taking a look
MelvinBot commentedon Feb 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0179eff6125b6d2857
eh2077 commentedon Feb 23, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The first line of a two line message, like
will be displayed as an empty line and the message preview in LHN is empty.
What is the root cause of that problem?
The regex rule
https://github.com/Expensify/expensify-common/blob/a2942d035614bf4bed90ffe2114d6ee828ee96da/lib/ExpensiMark.js#L167-L168
to translate markdown heading to HTML heading matches the last spaces if there're two or more spaces after #
What changes do you think we should make in order to solve the problem?
To fix this issue, we need to positive lookahead any non-whitespace character before the first capturing group. We can improve regex rule https://github.com/Expensify/expensify-common/blob/a2942d035614bf4bed90ffe2114d6ee828ee96da/lib/ExpensiMark.js#L167
from
to
What alternative solutions did you explore? (Optional)
None
9 remaining items
[-]Empty line appears both in report and in LHN if # is followed by two or more spaces in multiline message[/-][+][HOLD for payment 2023-03-13] Empty line appears both in report and in LHN if # is followed by two or more spaces in multiline message[/+]MelvinBot commentedon Mar 6, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".MelvinBot commentedon Mar 6, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.78-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-03-13. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
MelvinBot commentedon Mar 6, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
I think this was a very specific corner case. No additional steps are really needed.
NicMendonca commentedon Mar 10, 2023
@eh2077 don't forget to apply tot he job for reporting
eh2077 commentedon Mar 11, 2023
Hi @NicMendonca , thanks for reminding! But it looks like I can’t access the job on Upwork
NicMendonca commentedon Mar 13, 2023
Opps, sorry! I've made it public. @eh2077 can you try again please?
eh2077 commentedon Mar 14, 2023
@NicMendonca I have applied the job, thank you!
NicMendonca commentedon Mar 14, 2023
@eh2077 paid! 🎉
eh2077 commentedon Mar 15, 2023
Hi @NicMendonca , I just accepted the offer you sent me!
Hmm, it looks like still need your help to make the payment and then end the contract on Upwork. Would you please help with it? Thanks!
NicMendonca commentedon Mar 15, 2023
@eh2077 sorry! Just re-issued payment and closed out the contract. Can you confirm on your end?