Skip to content

Commit b3858e2

Browse files
committed
fix(NcRichTest): Allow markdown parenthesis in URL_PATTERN
Signed-off-by: provokateurin <[email protected]>
1 parent c39a056 commit b3858e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NcRichText/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @type {RegExp}
55
*/
6-
export const URL_PATTERN = /(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig
6+
export const URL_PATTERN = /(\s|\(|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\)|$)/ig
77

88
/**
99
* Regex pattern to identify strings as links and then making them clickable

0 commit comments

Comments
 (0)