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

fix: parse chrome or urls in plain link
This commit is contained in:
Stephen Zhou 2023-02-07 20:10:13 +08:00 committed by GitHub
parent 99cac7cac0
commit d6fe180ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);