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 16394c2 commit fa8a84cCopy full SHA for fa8a84c
src/index.ts
@@ -101,7 +101,7 @@ function convertBundleIntoReact(
101
}
102
103
const content: React.ReactNode[] = [];
104
- const linkRegex = /(\s+|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;
+ const linkRegex = /(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;
105
106
let index = 0;
107
let match: RegExpExecArray | null;
0 commit comments