Skip to content

Commit

Permalink
Do not cleaning URLs for the internal cache, fixes #792
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Mar 6, 2023
1 parent 21044c9 commit 952669e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/html_proofer/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ def retrieve_urls(urls_detected, type)
# if there are no urls, bail
return {} if urls_detected.empty?

urls_detected = urls_detected.transform_keys do |url|
cleaned_url(url)
if type == :external
urls_detected = urls_detected.transform_keys do |url|
cleaned_url(url)
end
end

urls_to_check = detect_url_changes(urls_detected, type)
Expand Down

0 comments on commit 952669e

Please sign in to comment.