-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for Payment 2024-09-09][$250] Wrong parsing when single backticks used in 2 separate places #46917
Comments
Triggered auto assignment to @JmillsExpensify ( |
Edited by proposal-police: This proposal was edited at 2024-08-07 07:14:57 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Wrong parsing when single backticks with a semicolon character used in 2 separate places What is the root cause of that problem?The regex rule for because of the square bracket in What changes do you think we should make in order to solve the problem?We could modify the regex to be: regex: /(\B|_|)`((?:`)*)(?!`)(.*?\S+?.*?)(?<!`)((?:`)*)(`)(\B|_|)(?!`|[^<]*<\/pre>|[^<]*<\/video>)/gm,
replacement: '$1<code>$2$3$4</code>$6', |
@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this? |
Hmm @thienlnam should we resolve this issue as part of on-going maintenance of our markdown library? |
We've been making some of these external - cc @BartoszGrajdek Looks like this one can also be external right? Or would you like to take it |
Yes, this is something External contributors can definitely work on 🙌🏻 |
Job added to Upwork: https://www.upwork.com/jobs/~014560c8f3601ebcb2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
This comment was marked as outdated.
This comment was marked as outdated.
@tsa321 Thanks for the proposal, noticed quite a few edits there 😅 Unfortunately even though the regex you suggested seems to fix the issue according to the issue's Expected result, it fails the following ❌ 6 tests in
Besides the failing tests, which make the proposed solution unacceptable, I also noticed that given the following input:
Once sent, the parsing will have the message look like this: causing white-space (empty space) inline code-block to not be parsed and instead showing the back-ticks instead of an empty code-block. If still interested in fixing the issue I suggest cloning the |
@ikevin127 Regarding the test:
I’ve updated the regex to: This will renders inline code with spaces correctly when I send the message. However, it fails the ExpensiMark-HTML-test.js test:
|
Proposal@ikevin127 I have updated my proposal. The regex and replacement has been updated and now passes all tests. |
@tsa321's updated proposal looks good to me, all expensify-common tests are 🟢 Passing. The RCA is correct and the proposed solution fixes the issue as per the Expected result. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Do we want to open separate issues for those two bugs you noted? Not sure if they exist already. For this one, the proposal sounds good! |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tsa321 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@ikevin127 PR is ready. |
@JmillsExpensify @dangrous @ikevin127 @tsa321 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
🟢 |
e-c PR is merged! |
@ikevin127 sorry for the late response to this comment - it got buried under too many GH notifications 😅 I agree with the 1st note, this is probably something we could think about improving. As for the 2nd note this is actually something we had a lengthy discussion about right here - let me know if you have access to it. There's no support for an "inline" code block (triple backticks) if you wish to create a code block linebreaks are required between backticks and the content itself. |
Thanks for the input @BartoszGrajdek! Do you (both) think it's worth it for me to create an issue to look into the first note and fix it? Seems pretty minor but I guess it can't hurt |
@dangrous I think we can create one, but as you said it looks like a pretty minor bug. This is something that we can open to proposals from external contributors. It looks like it only requires some changes in |
|
cc @JmillsExpensify bump for payment |
1 similar comment
cc @JmillsExpensify bump for payment |
Payment summary:
|
@ikevin127 do we have a BZ checklist for this issue yet? |
Regression Test Proposal
Do we agree 👍 or 👎. |
Contributors paid via Upwork and regression test created. I'm closing this one. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.17-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
Expensify/Expensify Issue URL:
Issue reported by: @coleaeason
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1722625457122619
Action Performed:
;
separated fields because the line number column could have:
in them"Expected Result:
it uses
;
separated fields because the line number column could have:
in themActual Result:
it uses
;
separated fields because the line number column could have :in them
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ikevin127The text was updated successfully, but these errors were encountered: