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

Fix: Prevent preview from crashing on email address #3205

Merged
merged 2 commits into from
May 29, 2024

Conversation

codebykat
Copy link
Member

Fix

This PR fixes #3200. The crash was a missing polyfill for Buffer that was only causing a runtime crash when the isemail code ran.

Test

  1. Create a Markdown note with an email address in it
  2. Preview the note
  3. Verify the note displays correctly

Release

Fixed a bug where an email address in a note would cause the preview to be blank.

@codebykat codebykat self-assigned this May 29, 2024
@codebykat codebykat requested a review from roundhill May 29, 2024 00:52
Copy link
Contributor

@roundhill roundhill left a comment

Choose a reason for hiding this comment

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

All good:

Screenshot 2024-05-29 at 10 03 41 AM

@codebykat codebykat merged commit f5d463f into trunk May 29, 2024
6 of 8 checks passed
@codebykat codebykat deleted the fix/markdown-preview-crashes-on-email-address branch May 29, 2024 16:32
@codebykat codebykat added this to the 2.22.0 milestone May 29, 2024
@jcamp
Copy link

jcamp commented Jun 3, 2024

Running 2.22.0 beta and still has the issue?

Please note this is not related to ANY email - JUST the email address of the logged in user. All other email addresses work fine.

@codebykat
Copy link
Member Author

@jcamp Huh, I can't reproduce that... and there's no code that is doing anything to detect the email address of the logged in user. Does your email address happen to contain any unusual characters that might be causing the preview to crash? Also, can you confirm this is still happening on https://app.simplenote.com ? The website is running the latest version of the code, which includes this fix (the current version of the beta app may not have been rebuilt after this addition, as we've been working on the build process).

@jcamp
Copy link

jcamp commented Jun 6, 2024 via email

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.

Inserting Email Address Into Note Causes Markdown Preview to be Blank
3 participants