Skip to content
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

Allow empty blockquotes #706

Conversation

BrtqKr
Copy link
Contributor

@BrtqKr BrtqKr commented May 27, 2024

This PR changes the way we parse blockquotes in shouldKeepRawInput mode - empty blockquotes will not be excluded by the regex.

image

Fixed Issues

$ Expensify/App#41107

Tests

  1. What unit/integration tests cover your change? What autoQA tests cover your change?
    There are no tests verifying the shouldKeepRawInput flag paths, but all the existing tests are passing as expected (the logic is supposed to change only for the react-native-live-markdown).

  2. What tests did you perform that validates your changed worked?
    I verified how it works by applying a proper patch including a modified regex in react-native-live-markdown.

QA

  1. What does QA need to do to validate your changes?
    bump expensify-common version in E/App and use chat normally - sent messages should be parsed with the new rule

  2. What areas to they need to test for regressions?
    All quotes usage scenarios are vulnerable to regressions

Copy link

github-actions bot commented May 27, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@BrtqKr
Copy link
Contributor Author

BrtqKr commented May 27, 2024

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@BartoszGrajdek BartoszGrajdek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BrtqKr BrtqKr marked this pull request as ready for review June 3, 2024 20:29
@BrtqKr BrtqKr requested a review from a team as a code owner June 3, 2024 20:29
@melvin-bot melvin-bot bot requested review from stitesExpensify and removed request for a team June 3, 2024 20:29
@stitesExpensify stitesExpensify merged commit 9d221a6 into Expensify:main Jun 4, 2024
8 of 9 checks passed
Copy link

melvin-bot bot commented Jun 4, 2024

@stitesExpensify looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@melvin-bot melvin-bot bot added the Emergency Marks a change in which we bypassed our normal process (eg, skipped travis) label Jun 4, 2024
Copy link

github-actions bot commented Jun 4, 2024

🚀Published to npm in v2.0.8

@stitesExpensify stitesExpensify removed the Emergency Marks a change in which we bypassed our normal process (eg, skipped travis) label Jun 4, 2024
@stitesExpensify
Copy link
Contributor

Hmm it does look like CLA failed, but the comment says CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ so I think we're fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants