We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This worked in 1.6.5:
slugify.extend({ '|': null, '%': null, $: null })
This changes the behavior of slugifying a string like "100%" from "100percent" to simply "100".
However this will break in 1.6.6, with the error message "TypeError: Cannot read properties of null (reading 'replace')".
Updating the extend object to replace "null" with empty strings like so will behave as expected:
slugify.extend({ '|': '', '%': '', $: '' })
It looks like this change wasn't documented anywhere so I thought I'd drop this note here in case anyone else goes looking for a fix, like I did.
The text was updated successfully, but these errors were encountered:
Thanks, that's definitely helpful. Maybe we need some additional tests added.
Sorry, something went wrong.
No branches or pull requests
This worked in 1.6.5:
This changes the behavior of slugifying a string like "100%" from "100percent" to simply "100".
However this will break in 1.6.6, with the error message "TypeError: Cannot read properties of null (reading 'replace')".
Updating the extend object to replace "null" with empty strings like so will behave as expected:
It looks like this change wasn't documented anywhere so I thought I'd drop this note here in case anyone else goes looking for a fix, like I did.
The text was updated successfully, but these errors were encountered: