You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library breaks for ANSI links that include + characters:
No + characters:
// you can generate this string via ansiEscapes.link(text, url) from the ansi-escapes npm libletstr="\u001b]8;;https://www.example.com/?q=hello\u0007hello\u001b]8;;\u0007";console.log(str.replace(ansiRegex(),''));// expected: hello// observed: hello
With + characters:
// you can generate this string via ansiEscapes.link(text, url) from the ansi-escapes npm libletstr="\u001b]8;;https://www.example.com/?q=hello+world\u0007hello\u001b]8;;\u0007";console.log(str.replace(ansiRegex(),''));// expected: hello// observed: ttps://www.example.com/?q=hello+worldhello
The text was updated successfully, but these errors were encountered:
romannurik
changed the title
"+" in links breaks the regex parser
"+" in links breaks the regex
Aug 12, 2024
The library breaks for ANSI links that include + characters:
No + characters:
With + characters:
The text was updated successfully, but these errors were encountered: