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.
2 parents 383aa49 + e74f840 commit 2454f58Copy full SHA for 2454f58
ui/packages/platform/src/pages/Bot/utils.ts
@@ -37,10 +37,10 @@ export const createMessageFragment = (messages: DebugMessage[]): DocumentFragmen
37
38
messages.forEach((item) => {
39
const textBeforeLink = `[${item.created_at}]: `;
40
- const parts = item.content.split(/(https?:\/\/[^\s]+)/g);
+ const parts = item.content.split(/(https?:\/\/[^\s)"']+)/g);
41
42
const messageContent = parts.map((part) => {
43
- if (/https?:\/\/[^\s]+/.test(part)) {
+ if(/https?:\/\/[^\s)"']+/.test(part)) {
44
const link = document.createElement('a');
45
link.href = part;
46
link.target = '_blank';
0 commit comments