Allow dash (-) in file names

This commit is contained in:
Sebastian Serth
2022-09-25 01:12:10 +02:00
parent eb188dcd71
commit 4e2dbae2da

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
FILENAME_REGEXP = %r{[\w./]+}.freeze unless Kernel.const_defined?(:FILENAME_REGEXP) FILENAME_REGEXP = %r{[\w\-./]+}.freeze unless Kernel.const_defined?(:FILENAME_REGEXP)
Rails.application.routes.draw do Rails.application.routes.draw do
resources :community_solutions, only: %i[index edit update] resources :community_solutions, only: %i[index edit update]