mirror of
https://github.com/usememos/memos.git
synced 2025-03-18 19:50:09 +01:00
fix: parse chrome or edge urls in plain link (#1034)
fix: parse chrome or urls in plain link
This commit is contained in:
parent
99cac7cac0
commit
d6fe180ca1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user