Skip to content

update file path regex for unicode letters

Matthias Käppler requested to merge github/fork/yms9654/unicode-file-path into master

Created by: yms9654

When I upload a file, there is a issue if filename hava a unicode letters.(ex: korean or japanese or chinese characters). It can't pass file_path_regex. [a-zA-Z0-9_\-\.\/]

So how about this? [\p{L}\p{N}_\-\.\/] \p{L} means unicode letter and \p{N} is number. http://ruby-doc.org/core-2.1.7/Regexp.html#class-Regexp-label-Character+Properties

Merge request reports

Loading