Fix most auto-correctable rubocop issues
This commit is contained in:
parent
34e3e51456
commit
ef7f3d800c
206 changed files with 2925 additions and 3473 deletions
|
@ -49,7 +49,7 @@ module CompressionSystem
|
|||
def strip_whitespace
|
||||
response.body.gsub!(/()|(.*?<\/script>)|()|()|\s+/m) do |m|
|
||||
if m =~ /^()(.*?)<\/script>$/m
|
||||
$1 + $2.strip.gsub(/\s+/, ' ').gsub('',"\n-->") + ''
|
||||
$1 + $2.strip.gsub(/\s+/, ' ').gsub('', "\n-->") + ''
|
||||
elsif m =~ /^$/m
|
||||
''
|
||||
elsif m =~ /^<(textarea|pre)/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue