-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Incorrect parsing for backticks with a space in between them #48101
Comments
Triggered auto assignment to @muttmuure ( |
The parsing is actually wonkier than this on staging/prod so this bug isn't visible yet, but it will be when THAT parsing is fixed by #47838. Making this so I don't forget, but no action at the moment @muttmuure! |
📣 @c0ffincolors! 📣
|
Edited by proposal-police: This proposal was edited at 2024-08-27 16:19:13 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect parsing for backticks with a space in between them What is the root cause of that problem?We are checking that there is at least one whitespace character What changes do you think we should make in order to solve the problem?Remove Updated regex
Or
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-08-28 11:10:18 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect parsing for backticks with a space in between them What is the root cause of that problem?The regex for inline code: that will be modified into :
won't allow space only inside backtick, in the What changes do you think we should make in order to solve the problem?Modify the regex into:
We also need to escape the space character as We should add Additionally, in: we add And in: we add but this will breaks many regexes. We could adjust the regexes accordingly. Alternatively, we could escape the space in before return of Or right before sending the comment: App/src/libs/actions/Report.ts Line 455 in ac5ee2e
and in here: App/src/libs/actions/Report.ts Line 468 in ac5ee2e
or directly in here: App/src/libs/actions/Report.ts Line 511 in ac5ee2e
Or another more appropriate place. |
almost ready to open this up officially, PR is merged but not yet deployed |
@muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Will wait until we need an external contributor |
Not overdue |
Okay we're ready to go on this one, will make it external |
Job added to Upwork: https://www.upwork.com/jobs/~01e928bacaaf9c0339 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@tsa321 @Nodebrute Thanks for proposals, everyone. I think both of you pointed out the correct root cause. But both solutions would cause another issue where a user sends backticks with a space. Steps to reproduce
|
@hoangzinh yes, that is way we must convert the space with |
@tsa321 I tried to apply your solution, but still got same error. Can you share your recording and the AddComment API request body in this case? Thank you |
@hoangzinh here is the video: api_req.mp4 |
@tsa321 Thanks for the updates. Your proposal looks good to me Link to proposal #48101 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @deetergp, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@hoangzinh PR is ready |
This issue has not been updated in over 15 days. @deetergp, @hoangzinh, @muttmuure, @tsa321 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@muttmuure I think our automations failed to update, but the PR for this issue has been deployed to production. |
I think @muttmuure is still on leave, I'll reapply the label |
Triggered auto assignment to @anmurali ( |
@deetergp, @hoangzinh, @anmurali, @tsa321 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
BugZero Checklist:
|
not overdue, it's ready for payment cc @anmurali |
@deetergp, @hoangzinh, @anmurali, @tsa321 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
cc @anmurali on payment |
@deetergp, @hoangzinh, @anmurali, @tsa321 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number:
Reproducible in staging?: yes
Reproducible in production?: yes
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:
Slack conversation: not Slack but #46917 (comment)
Action Performed:
Expected Result:
The input should look like
it uses
with space
;
separated fields because the line number column could have:
in them(The space at the end is in a code block)
Actual Result:
The input looks like
(The space at the end is not in a code block, the backticks are visible)
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Yes
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
See above.
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: