Skip to content

Prevent emoji being formatted #685

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

Merged

Conversation

bernhardoj
Copy link
Contributor

@bernhardoj bernhardoj commented May 28, 2025

Details

When emoji is wrapped with a markdown, the emoji is being formatted and we don't want that.

Related Issues

$ Expensify/App#62029

Manual Tests

  1. Run the web example
  2. Type _😄_
  3. Verify the emoji is not formatted
Screenshot 2025-05-28 at 18 35 59

Linked PRs

Comment on lines 14 to 15
default:
return 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the default 1? Can't we make the emoji -1 and keep the rest as is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No strong reason, just trying to avoid using negative value. Updated.

@bernhardoj
Copy link
Contributor Author

Hmm, the test fails locally on me too

@s77rt
Copy link
Contributor

s77rt commented May 31, 2025

@bernhardoj Are the tests failing on main?

@bernhardoj
Copy link
Contributor Author

Oh my bad, the playwright isn't installed yet. It passes on me locally, both main and this PR

@bernhardoj
Copy link
Contributor Author

bernhardoj commented Jun 1, 2025

image

From the log, the 1st test here that fails in CI isn't "checkmarked", but it still says 51 passed.

image

On main, all are "checkmarked".

EDIT: Oh, now all are "checkmarked" on this PR too. I think it's just a visual issue, but all the test still passes. I think we should re-run the CI.

@s77rt
Copy link
Contributor

s77rt commented Jun 1, 2025

@luacmartins can you please re-trigger the tests

@luacmartins
Copy link
Contributor

Running again

@luacmartins luacmartins merged commit c4f9bd7 into Expensify:main Jun 2, 2025
5 checks passed
@os-botify
Copy link
Contributor

os-botify bot commented Jun 2, 2025

🚀 Published to npm in 0.1.280 🎉

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