fix(slug): remove all Supplemental Symbols in slug

Fix the `slug` function to remove *all* emojis in the Supplemental
Symbols and Pictographs Unicode block.

I'm not sure why originally only a partial range was removed, but this
change seems to align with GitHub-flavored Markdown.

While this will effectively fix issue #5998, it does not address the
underlying problem where slugs were never designed for widget IDs.
This commit is contained in:
TomJGooding
2025-08-05 20:11:21 +01:00
parent 7c2b65f6fd
commit 8431b9c8ec
2 changed files with 3 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ from textual._slug import TrackedSlugs, slug
("test🙂test", "testtest"),
("test🤷test", "testtest"),
("test🤷🏻test", "testtest"),
("test🤖test", "testtest"),
("test🧠test", "testtest"),
],
)
def test_simple_slug(text: str, expected: str) -> None: