Fixes the remove_conditional_comments function

This commit is contained in:
erwanlr
2014-09-02 18:34:01 +02:00
parent 04b1cee71e
commit 96ae8ade5d
3 changed files with 15 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ def add_trailing_slash(url)
end
def remove_conditional_comments(text)
text.gsub(/<!--\[if[^>]+>(.*)<!\[end[^>]+>/im, '\1')
text.gsub(/\<\!--\[if[^>]+>(.*?)\<\!\[end[^>]+>/im, '\1')
end
# loading the updater