diff --git a/utils/linkify.tsx b/utils/linkify.tsx index 6584634a..b87ae293 100644 --- a/utils/linkify.tsx +++ b/utils/linkify.tsx @@ -11,7 +11,7 @@ function matchAll(str: string, re: RegExp) { export default function Linkify({ children }: { children?: string | null }) { if (!children) return children - const { i, el } = matchAll(children, /(doi:|https:\/\/)([^\s]+)/g) + const { i, el } = matchAll(children, /(doi:|https?:\/\/)([^\s]+)/g) .reduce(({ i, el }, m) => m.index ? ({ i: m.index + m[0].length, el: [