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 36c80f3 commit f55bf33Copy full SHA for f55bf33
src/components/Utils/utils.ts
@@ -259,9 +259,12 @@ export const parseLinks = (lines: any[]): LinePartCss[] => {
259
const arr = line.text.split(" ");
260
261
let found = false;
262
+ let partial = '';
263
264
arr.forEach((text: string) => {
265
if (text.search(strictUrlRegex) > -1) {
266
+ result.push({ text: partial.trimEnd() });
267
+ partial = '';
268
found = true;
269
const email = true;
270
const link = true;
@@ -285,6 +288,8 @@ export const parseLinks = (lines: any[]): LinePartCss[] => {
285
288
286
289
return;
287
290
}
291
+
292
+ partial += text + ' ';
293
});
294
295
if (!found) {
0 commit comments