@abcaustralia/hyperdraft
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -24,3 +24,3 @@ "use strict"; | ||
' They spent $24027 less than the median.\n', | ||
].join('\n')); | ||
].join('')); | ||
expect(partialsUsed).toHaveLength(0); | ||
@@ -27,0 +27,0 @@ })); |
@@ -12,17 +12,17 @@ "use strict"; | ||
let output = input; | ||
if (opts.removeExtraWhitespace !== false) { | ||
output = removeExtraWhitespace(output); | ||
} | ||
if (opts.removeProtocolFromUrls !== false) { | ||
output = removeProtocolFromUrls(output); | ||
} | ||
if (opts.decodeHtml !== false) { | ||
output = decodeHtml(output); | ||
} | ||
if (opts.sanitizeHtml !== false) { | ||
output = sanitizeHtml(output); | ||
} | ||
if (opts.decodeHtml !== false) { | ||
output = decodeHtml(output); | ||
} | ||
if (opts.fixIndefiniteArticles !== false) { | ||
output = fixIndefiniteArticles(output); | ||
} | ||
if (opts.removeExtraWhitespace !== false) { | ||
output = removeExtraWhitespace(output); | ||
} | ||
(opts.replaceRegex || []).forEach(({ replace, find }) => { | ||
@@ -29,0 +29,0 @@ output = output.replace(new RegExp(find, 'g'), replace); |
{ | ||
"name": "@abcaustralia/hyperdraft", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "A runtime for natural language generation", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -17,3 +17,3 @@ import { readFileSync } from 'fs'; | ||
' They spent $24027 less than the median.\n', | ||
].join('\n'), | ||
].join(''), | ||
); | ||
@@ -20,0 +20,0 @@ expect(partialsUsed).toHaveLength(0); |
@@ -23,17 +23,17 @@ import sanitize from 'sanitize-html'; | ||
let output = input; | ||
if (opts.removeExtraWhitespace !== false) { | ||
output = removeExtraWhitespace(output); | ||
} | ||
if (opts.removeProtocolFromUrls !== false) { | ||
output = removeProtocolFromUrls(output); | ||
} | ||
if (opts.decodeHtml !== false) { | ||
output = decodeHtml(output); | ||
} | ||
if (opts.sanitizeHtml !== false) { | ||
output = sanitizeHtml(output); | ||
} | ||
if (opts.decodeHtml !== false) { | ||
output = decodeHtml(output); | ||
} | ||
if (opts.fixIndefiniteArticles !== false) { | ||
output = fixIndefiniteArticles(output); | ||
} | ||
if (opts.removeExtraWhitespace !== false) { | ||
output = removeExtraWhitespace(output); | ||
} | ||
@@ -40,0 +40,0 @@ (opts.replaceRegex || []).forEach(({ replace, find }) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
191482