Bump rubocop

This commit is contained in:
gregoirenovel 2018-01-12 13:16:08 +01:00
parent c05f06ceea
commit 48fd3605a4
4 changed files with 91 additions and 44 deletions

View file

@ -21,7 +21,7 @@ namespace :'2017_10_30_copy_commentaire_piece_justificative_to_file' do
def sanitize_name(name) # from https://github.com/carrierwaveuploader/carrierwave/blob/master/lib/carrierwave/sanitized_file.rb#L323
name = name.gsub(/[^[:word:]\.\-\+]/,"_")
name = "_#{name}" if name =~ /\A\.+\z/
name = "_#{name}" if name.match?(/\A\.+\z/)
name = "unnamed" if name.size == 0
return name.mb_chars.to_s
end