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

Fixes errors caused by special characters #17

Merged
merged 6 commits into from
Mar 3, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Feb 1, 2023

Applies a cleanString function to editable Document properties to replace invalid characters with ASCII-friendly equivalents. This fixes an error where creating or saving a doc with special characters, e.g., smart quotes, bullets, accented letters, would throw an error and sometimes delete the document header.

I consider this a short-term solution while we investigate how to make special characters work.

New dependency: https://www.npmjs.com/package/replace-special-characters

@jeffdaley jeffdaley requested a review from a team as a code owner February 23, 2023 18:11
@jeffdaley jeffdaley merged commit b24aa8c into main Mar 3, 2023
@jeffdaley jeffdaley deleted the jeffdaley/replace-special-characters branch March 3, 2023 20:07
anuragprafulla referenced this pull request in razorpay/hermes Jun 27, 2023
* Add `cleanString` function

* Update yarn.lock
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.

None yet

2 participants