From 1a19028b66cb3e2ae4be48c8a3dd1d6d774780a9 Mon Sep 17 00:00:00 2001 From: Federico Soave Date: Sat, 20 Jan 2018 03:07:59 +0100 Subject: [PATCH] [lint] fix whitespace --- lib/marked.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/marked.js b/lib/marked.js index 537b7528..6a025d30 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -436,8 +436,7 @@ Lexer.prototype.token = function(src, top, bq) { } if (src) { - throw new - Error('Infinite loop on byte: ' + src.charCodeAt(0)); + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); } } @@ -526,8 +525,7 @@ function InlineLexer(links, options) { this.renderer.options = this.options; if (!this.links) { - throw new - Error('Tokens array requires a `links` property.'); + throw new Error('Tokens array requires a `links` property.'); } if (this.options.gfm) { @@ -581,8 +579,8 @@ InlineLexer.prototype.output = function(src) { if (cap[2] === '@') { text = escape( cap[1].charAt(6) === ':' - ? this.mangle(cap[1].substring(7)) - : this.mangle(cap[1]) + ? this.mangle(cap[1].substring(7)) + : this.mangle(cap[1]) ); href = this.mangle('mailto:') + text; } else { @@ -690,8 +688,7 @@ InlineLexer.prototype.output = function(src) { } if (src) { - throw new - Error('Infinite loop on byte: ' + src.charCodeAt(0)); + throw new Error('Infinite loop on byte: ' + src.charCodeAt(0)); } } @@ -1103,7 +1100,7 @@ function escape(html, encode) { } function unescape(html) { - // explicitly match decimal, hex, and named HTML entities + // explicitly match decimal, hex, and named HTML entities return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, function(_, n) { n = n.toLowerCase(); if (n === 'colon') return ':'; @@ -1176,7 +1173,6 @@ function merge(obj) { return obj; } - /** * Marked */