Unverified Commit d6fe180c authored by Stephen Zhou's avatar Stephen Zhou Committed by GitHub

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

fix: parse chrome or urls in plain link
parent 99cac7ca
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment