1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Merge pull request #12136 from NixOS/mergify/bp/2.24-maintenance/pr-11876

Filter OSC 8 correctly (backport #11876)
This commit is contained in:
Jörg Thalheim 2025-01-07 07:22:37 +01:00 committed by GitHub
commit b59b317e47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -700,4 +700,9 @@ namespace nix {
ASSERT_EQ(filterANSIEscapes("f𐍈𐍈bär", true, 4), "f𐍈𐍈b");
}
TEST(filterANSIEscapes, osc8)
{
ASSERT_EQ(filterANSIEscapes("\e]8;;http://example.com\e\\This is a link\e]8;;\e\\"), "This is a link");
}
}