Skip to content

Commit

Permalink
Update renderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon authored Apr 4, 2017
1 parent c77bcd3 commit 2bea171
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,24 @@ if (!this.options.autolink) {
.replace(/[^\w:]/g, '')
.toLowerCase();
} catch (e) {
return "";
return '';
}

if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) {
return "";
return '';
}
}

if (href === text && title == null) {
return href;
}

var out = '<a href="' + href + '"';

if (title) {
out += ' title="' + title + '"';
}

out += '>' + text + '</a>';
return out;
};
Expand Down

0 comments on commit 2bea171

Please sign in to comment.