We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b3bbd commit f940588Copy full SHA for f940588
src/utils/getProcessedText.js
@@ -10,7 +10,7 @@ export const getProcessedText = (text) => {
10
11
// Regex to match URLs that are NOT already in markdown or HTML link format
12
// This looks for URLs that are not preceded by ]( or href=" or [ and not followed by ) or ]
13
- const urlRegex = /(?<!\]\(|href=["']|\[)https?:\/\/[^\s\[\]()]+(?![)\]])/gi;
+ const urlRegex = /(?<!\]\(|href=["']|\[)https?:\/\/[^\s[\]()]+(?![)\]])/gi;
14
15
// Replace bare URLs with markdown links
16
const processedText = text.replace(urlRegex, (url) => {
0 commit comments