fix(app/web): lookbehind replace to support Safari (sigh)...

This commit is contained in:
lowlighter
2022-07-21 14:03:33 -04:00
parent 37e33a6a2d
commit 798ed95a0a

View File

@@ -84,7 +84,7 @@
(_, repo, tags) => (options?.repo === repo ? "" : repo + "@") + tags,
) // -> 'lowlighter/metrics@1.0...1.1'
.replace(
/(?<!&)#(\d+)/g,
/[^&]#(\d+)/g,
(_, id) => `<a href="https://github.com/${options?.repo}/issues/${id}">#${id}</a>`,
) // -> #123
.replace(