-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Makes most special characters be replaced with a dash #4783
Conversation
Hi @claydiffrient, sorry for letting this sit for such a long time. I think the order in which things are done needs to be addressed, as currently the I recommend switching it back to doing character handling before unicode handling? |
Hi @claydiffrient, if you don't have time to update this then I'll fix it up and get it merged. Thought I'd drop one more message before I do JIC 😉 |
Hey @ErisDS I'm so sorry that I've not done this yet. I keep putting it off. I'll fix it up tonight or tomorrow. If it's not done by Wednesday, I give you leave to take it :) |
Understood 😀 |
@ErisDS I've got commits in that fix everything. I think the one failure on that one build is a transient failure. All the other builds worked just fine, and I wouldn't expect this code to affect that portion. I also cannot get it to fail locally. I can't retrigger the build on Travis for some reason, I'm assuming because I'm not a collaborator on the project. I think it would be safe to override and do the merge, but perhaps retriggering would be best to get the green check from Travis. Sorry it took me so long to get this done. |
Hey @claydiffrient I restarted that failing build and it's all green now :) One last thing, could you please squash those commits? Thanks 👍 |
@ErisDS Done. Sorry, I can't believe I didn't do that beforehand. I hate getting several commits in PRs personally. |
I'm sorry for the to-ing and fro-ing on this, but I think the most recent change to account for I believe the
gets converted to
Which introduces new commas, full stops, and a space at the end which would not be handled. We may even need to move the call to |
@ErisDS I added the unicode test and made sure it passes. I also went ahead and moved the call to trim just to be safe. I couldn't figure out a test that would cause it to have problems running at the beginning, but figured maybe there was something that it would fail with somewhere out there. Anyways, hopefully this works in all cases now :) |
@claydiffrient not sure if you saw but this PR is currently failing on a linting error :( |
closes TryGhost#4782 - Still achieves the same goal of stripping out reserved characters - Changes from removal to replacement - This helps word separators from being removed - Apostrophes (') are unaffected
@ErisDS I actually didn't notice. I fixed the problem it was hung up on and everything seems to be good locally. A new commit is up. Hopefully this will be the end of it :) |
Makes most special characters be replaced with a dash
Merged! I actually thought I had done this already 😕 |
closes #4782