Skip to content

Commit

Permalink
Removes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Aug 10, 2023
1 parent 9736e54 commit 0d2ad6b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/annotations/autolinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,3 @@ function ensureCachedRegex(ref: CacheableAutolinkReference, outputFormat: 'html'

return true;
}

function escapeQuotesInLinkTitleMarkdown(s: string) {
// Skip the first and last quotes
return s.replace(/(?!^)".*?(?!$)"/g, match => match.replace(/"/g, '\\"'));
}

function escapeQuotesInLinkTitleHtml(s: string) {
// Skip the first and last quotes
return s.replace(/(?!^)".*?(?!$)"/g, match => match.replace(/"/g, '"'));
}

0 comments on commit 0d2ad6b

Please sign in to comment.