lib/relaton/db_cache.rb in relaton-1.15.2 vs lib/relaton/db_cache.rb in relaton-1.15.3

- old
+ new

@@ -160,10 +160,10 @@ # @param value [String] # @return [String] def filename(key) prefcode = key.downcase.match(/^(?<prefix>[^(]+)\((?<code>[^)]+)/) fn = if prefcode - "#{prefcode[:prefix]}/#{prefcode[:code].gsub(/[-:\s\/()]/, '_').squeeze('_')}" + "#{prefcode[:prefix]}/#{prefcode[:code].gsub(/[:\s\/()]/, '_').squeeze('_')}" else key.gsub(/[-:\s]/, "_") end "#{@dir}/#{fn.sub(/(,|_$)/, '')}" end