From: alexlamsl Date: Thu, 24 Nov 2016 06:51:08 +0000 (+0800) Subject: handle errors from Will Peavy's HTML Minifier X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0c7732e644c632f8ebce57529ff24b2ce7932620;p=html-minifier.git handle errors from Will Peavy's HTML Minifier --- diff --git a/benchmark.js b/benchmark.js index 3532c20..c8604fe 100644 --- a/benchmark.js +++ b/benchmark.js @@ -309,14 +309,24 @@ run(fileNames.map(function(fileName) { res.on('data', function(chunk) { response += chunk; }).on('end', function() { - // Extract result from '); - var result = response.slice(start + 1, end).replace(/<\\\//g, ' + var start = response.indexOf('>', response.indexOf(''); + var result = response.slice(start + 1, end).replace(/<\\\//g, '