Closed RedYetiDev closed 1 month ago
For anyone digging into this, "OSC" is an "Operating System Command". One reference I've found is from Microsoft, which claims:
As OSC sequences, they are ended with a String Terminator represented as
and transmitted with ESC \ (0x1B 0x5C). BEL (0x7) may be used instead as the terminator, but the longer form is preferred.
So the bug should probably read "cannot match link regexes that end in \u0001B\u005c".
I've verified that iTerm2 at least does accept the sample string, so this isn't just a Microsoft thing.
ansi-regex
cannot match link regexes that end in\u0001B
, as the regex only allows\u0007
.Example:
\x1b]8;;http://example.com/\x1b\\This is a link\x1b]8;;\x1b\\ hello
Reference: https://github.com/nodejs/node/issues/53697