Skip to content

Commit

Permalink
fix(NcRichTest): Allow markdown parenthesis in URL_PATTERN
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Nov 16, 2024
1 parent c39a056 commit b3858e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcRichText/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @type {RegExp}
*/
export const URL_PATTERN = /(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig
export const URL_PATTERN = /(\s|\(|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\)|$)/ig

/**
* Regex pattern to identify strings as links and then making them clickable
Expand Down

0 comments on commit b3858e2

Please sign in to comment.