mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-23 04:17:34 +00:00
Merge b4c4d29d71 into 6664fc7f38
This commit is contained in:
commit
a079fa3e7c
1 changed files with 1 additions and 1 deletions
|
|
@ -1715,7 +1715,7 @@ function convertPathsToLinks(str) {
|
|||
);
|
||||
|
||||
// skip paths inside html tags, like <img src="/path/to/image">
|
||||
const tagRegex = /(<(?:[^<>"']+|"[^"]*"|'[^']*')*>)/g;
|
||||
const tagRegex = /(<\/?(?:[A-Za-z][A-Za-z0-9:-]*)(?:\s+[A-Za-z_:][A-Za-z0-9:._-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"=<>`]+))?)*\s*\/?>)/g;//Old pattern= /(<(?:[^<>"']+|"[^"]*"|'[^']*')*>)/g;
|
||||
|
||||
return str
|
||||
.split(tagRegex) // keep tags & text separate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue