Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: parse chrome or edge urls in plain link (#1034)

Stephen Zhoud6fe180ca186
diff --git a/web/src/labs/marked/parser/PlainLink.tsx b/web/src/labs/marked/parser/PlainLink.tsx
index c754ee7db..d09fb9736 100644
--- a/web/src/labs/marked/parser/PlainLink.tsx
+++ b/web/src/labs/marked/parser/PlainLink.tsx
@@ -1,6 +1,6 @@
import { matcher } from "../matcher";
-export const PLAIN_LINK_REG = /(https?:\/\/[^ ]+)/;
+export const PLAIN_LINK_REG = /((?:https?|chrome|edge):\/\/[^ ]+)/;
const renderer = (rawStr: string) => {
const matchResult = matcher(rawStr, PLAIN_LINK_REG);