blob: cc9c621c6794fa5d863584b060543807a4c959c6 (
plain)
1
2
3
4
5
|
// capture anything starting with http:// or https:// which is not already part of a html link
// up until a disallowed character or whitespace
export const blobLinkRegex = /(?<!<a href=")https?:\/\/[^"<>\\^`{|}\s]+/g;
export default { blobLinkRegex };
|