mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-12 19:53:24 +02:00
Sanitize notifications ids as they are retransmitted over the TTY
This commit is contained in:
@@ -555,3 +555,7 @@ class TestDataTypes(BaseTest):
|
||||
self.assertEqual(hash(SingleKey(key=1)), hash(SingleKey(key=1)))
|
||||
self.assertNotEqual(hash(SingleKey(key=1, mods=2)), hash(SingleKey(key=1)))
|
||||
self.assertNotEqual(SingleKey(key=1, mods=2), SingleKey(key=1))
|
||||
|
||||
def test_notify_identifier_sanitization(self):
|
||||
from kitty.notify import sanitize_identifier_pat
|
||||
self.ae(sanitize_identifier_pat().sub('', '\x1b\nabc\n[*'), 'abc')
|
||||
|
||||
Reference in New Issue
Block a user