In HTML to MFM, use angle bracket if needed (#6817)

This commit is contained in:
MeiMei
2020-11-08 00:38:50 +09:00
committed by GitHub
parent a8776002f3
commit 27d0ac3d75
3 changed files with 43 additions and 3 deletions

View File

@@ -36,4 +36,5 @@ export function createTree(type: string, children: MfmForest, props: any): MfmTr
return T.createTree({ type, props }, children);
}
export const urlRegex = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+/;
export const urlRegex = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+/;
export const urlRegexFull = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+$/;