-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow spaces in sanitizeFileName #59
Comments
How about the fix to keep the existing pattern would be: As for repeated spaces... I know it would be slick to do it all in one regex but if we added Not 100% sure how to write that all as a single regex, but |
Thank you for your suggestions. I've updated the function to allow spaces in filenames. |
Fix released in OwlPlug 0.15.0 |
Spaces (and only
" "
) should be allowed in filenames. It's not the case in FileUtils.sanitizeFileNameOwlPlug/owlplug-client/src/main/java/com/owlplug/core/utils/FileUtils.java
Line 58 in 2e43c1f
If spaces are allowed, we should trim the String to avoid trailing and duplicates space character.
The text was updated successfully, but these errors were encountered: