mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 06:16:02 +08: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 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { matcher } from "../matcher";
|
import { matcher } from "../matcher";
|
||||||
|
|
||||||
export const PLAIN_LINK_REG = /(https?:\/\/[^ ]+)/;
|
export const PLAIN_LINK_REG = /((?:https?|chrome|edge):\/\/[^ ]+)/;
|
||||||
|
|
||||||
const renderer = (rawStr: string) => {
|
const renderer = (rawStr: string) => {
|
||||||
const matchResult = matcher(rawStr, PLAIN_LINK_REG);
|
const matchResult = matcher(rawStr, PLAIN_LINK_REG);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue