Skip to content

Commit f940588

Browse files
committed
chore: fix regex to satisfy linter
1 parent 55b3bbd commit f940588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getProcessedText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getProcessedText = (text) => {
1010

1111
// Regex to match URLs that are NOT already in markdown or HTML link format
1212
// This looks for URLs that are not preceded by ]( or href=" or [ and not followed by ) or ]
13-
const urlRegex = /(?<!\]\(|href=["']|\[)https?:\/\/[^\s\[\]()]+(?![)\]])/gi;
13+
const urlRegex = /(?<!\]\(|href=["']|\[)https?:\/\/[^\s[\]()]+(?![)\]])/gi;
1414

1515
// Replace bare URLs with markdown links
1616
const processedText = text.replace(urlRegex, (url) => {

0 commit comments

Comments
 (0)