Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFilenames need to be sanitized during conversions #234
Comments
|
A very simple implementation in windows is def easySlug(string, repl="-", directory=False):
import re
if directory:
return re.sub("^\.|\.+$", "", easySlug(string, directory=False))
else:
return re.sub("[\\\\/:*?\"<>\|]|\ $", repl, string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comics with special characters in their names will fail with OS errors if their names contain special characters. A slug function needs to be implemented and referenced in GlobalFunctions