We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9569a46 + 27987b1 commit 921358bCopy full SHA for 921358b
lib/carto/visualization_exporter.rb
@@ -77,7 +77,7 @@ module VisualizationExporter
77
VISUALIZATION_EXTENSIONS = [Carto::VisualizationExporter::EXPORT_EXTENSION].freeze
78
79
def self.has_visualization_extension?(filename)
80
- VISUALIZATION_EXTENSIONS.any? { |extension| filename =~ /#{extension}$/ }
+ VISUALIZATION_EXTENSIONS.any? { |extension| filename =~ /#{Regexp.escape(extension)}$/ }
81
end
82
83
def export(visualization, user,
0 commit comments