Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Fix file names issues caused by special characters in search string
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhenry committed Oct 13, 2017
1 parent 24e21fa commit 9087716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govuk_visual_regression/visual_diff/wraith_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def path_would_break_wraith?(path)
end

def path_config_name(path)
path.gsub('/', '_')
path.gsub(%r{[/&\?%]+}, '_')
end

def temporary_config_file_name
Expand Down

0 comments on commit 9087716

Please sign in to comment.