diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx index 5420fe6471..eca0d7c635 100644 --- a/src/components/RichText.tsx +++ b/src/components/RichText.tsx @@ -11,7 +11,7 @@ import {RichTextTag} from '#/components/RichTextTag' import {Text, type TextProps} from '#/components/Typography' const WORD_WRAP = {wordWrap: 1} -// lifted from facet detection in `RichText` impl +// lifted from facet detection in `RichText` impl, _without_ `gm` flags const URL_REGEX = /(^|\s|\()((https?:\/\/[\S]+)|((?[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/i