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(typography): require spaces after divisions to not break dates #4696

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Dec 14, 2023

Please describe your changes

This PR changes the regex for all division replacements to require a space after a division. This way dates won't be broken when typing 1/4/2024 for example. See issue #4663

How did you accomplish your changes

I added a required whitespace after the division regexes.

How have you tested your changes

I added two new tests that will check if those requirements are met.

How can we verify your changes

Check the tests for the Typography demo page

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

Closes #4663

@bdbch bdbch self-assigned this Dec 14, 2023
Copy link

netlify bot commented Dec 14, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit bf7ff81
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/657b0ba30f507400080fee2c
😎 Deploy Preview https://deploy-preview-4696--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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

Successfully merging this pull request may close these issues.

None yet

2 participants