Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas committed Jun 26, 2019
1 parent 0c38172 commit 73ad658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ function findClosingBracket(str, b) {

function checkSanitizeDeprecation(opt) {
if (opt && opt.sanitize && !opt.silent) {
console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.6.3 and will be removed from the next major version. Please use an external library, e.g. DOMPurify for your sanitization needs.");
console.warn('marked(): sanitize and sanitizer parameters are deprecated since version 0.6.3 and will be removed from the next major version. Please use an external library, e.g. DOMPurify for your sanitization needs.');
}
}

Expand Down
5 changes: 3 additions & 2 deletions test/specs/run-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ function runSpecs(title, dir, showCompletionTable, options) {
spec.options = Object.assign({}, options, (spec.options || {}));
const example = (spec.example ? ' example ' + spec.example : '');
const passFail = (spec.shouldFail ? 'fail' : 'pass');
if (spec.options.sanitizerRemoveHtml)
if (spec.options.sanitizerRemoveHtml) {
spec.options.sanitizer = () => '';
}
(spec.only ? fit : it)('should ' + passFail + example, () => {
const before = process.hrtime();
if (spec.shouldFail) {
Expand All @@ -42,4 +43,4 @@ runSpecs('CommonMark', './commonmark', true, { headerIds: false });
runSpecs('Original', './original', false, { gfm: false });
runSpecs('New', './new');
runSpecs('ReDOS', './redos');
runSpecs('Security', './security', false, { silent: true /* no deprecation warnings */ });
runSpecs('Security', './security', false, { silent: true }); // silent - do not show deprecation warning

0 comments on commit 73ad658

Please sign in to comment.