Skip to content

Commit

Permalink
Refactor(Scope): Reduce prot scope
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed May 18, 2019
1 parent 5087bb2 commit 8b72da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function anchorId(str, transformOption) {

// Support AutoLink option
Renderer.prototype.link = function(href, title, text) {
let prot;

if (this.options.sanitize) {
let prot;

try {
prot = decodeURIComponent(unescape(href))
.replace(/[^\w:]/g, '')
Expand Down

0 comments on commit 8b72da7

Please sign in to comment.