From 5efd0e7d9610308c999313068a1991d950d50a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sun, 20 Jun 2021 15:05:56 +0200 Subject: [PATCH] Fix load issue in safari (#487) --- src/tools/markdown/markdown.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/markdown/markdown.ts b/src/tools/markdown/markdown.ts index 79c1dd96..31a2c551 100644 --- a/src/tools/markdown/markdown.ts +++ b/src/tools/markdown/markdown.ts @@ -68,11 +68,10 @@ export class markdown { // Add references to issues and PRs if (repo) { - input = input.replace(/(?:(? { + input = input.replace(/(?:\w[\w-.]+\/\w[\w-.]+|\B)#[1-9]\d*\b/g, (reference) => { const fullReference = reference.replace(/^#/, `${repo.full_name}#`); const [fullName, issue] = fullReference.split("#"); - const url = `https://github.com/${fullName}/issues/${issue}`; - return `[${reference}](${url})`; + return `[${reference}](https://github.com/${fullName}/issues/${issue})`; }); }