From 96ae8ade5d76749efa940bab7479348ffa294eb1 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Tue, 2 Sep 2014 18:34:01 +0200 Subject: [PATCH] Fixes the remove_conditional_comments function --- lib/common/common_helper.rb | 2 +- spec/lib/common/collections/wp_items_spec.rb | 2 +- .../detectable/passive_detection.html | 21 ++++++++++++------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 22fad14c..3ccfd97e 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -74,7 +74,7 @@ def add_trailing_slash(url) end def remove_conditional_comments(text) - text.gsub(/ + + + http://example.com/wp-content/items/this-should-not-match/sub.css href="http://example.com/wp-content/items/this-should-not-match/sub.css"