Closed edwinjoseph closed 4 years ago
When trying to sanitize urls if the url has accented characters in them they get dropped.
Here is a PR that I've create with a possible solution: https://github.com/edwinjoseph/sanitize-url/pull/1
sanitizeUrl('https://www.somedomain.com/posts/a-new-post-with-asšês'); // => https://www.somedomain.com/posts/a-new-post-with-ass
sanitizeUrl('https://www.somedomain.com/posts/a-new-post-with-asšês'); // => https://www.somedomain.com/posts/a-new-post-with-asšês
Go ahead and open the PR here instead of on your fork and we'll evaluate it. Thanks!
Fixed with 4.0.1
Description
When trying to sanitize urls if the url has accented characters in them they get dropped.
Update:
Here is a PR that I've create with a possible solution: https://github.com/edwinjoseph/sanitize-url/pull/1
Current Behaviour
Expected Behaviour