Skip to content

Commit a38ad12

Browse files
authored
Merge pull request #6019 from TomJGooding/fix-slug-remove-all-supplemental-symbols
fix(slug): remove all Supplemental Symbols in slug
2 parents d4740a1 + bd41740 commit a38ad12

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/textual/_slug.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
r"\U000024C2-\U0001F251"
3535
r"\U00002702-\U000027B0"
3636
r"\U0001F1E0-\U0001F1FF"
37-
r"\U0001F300-\U0001F5FF"
38-
r"\U0001F600-\U0001F64F"
39-
r"\U0001F680-\U0001F6FF"
40-
r"\U0001f926-\U0001f937"
37+
r"\U0001F300-\U0001F5FF" # Miscellaneous Symbols And Pictographs
38+
r"\U0001F600-\U0001F64F" # Emoticons
39+
r"\U0001F680-\U0001F6FF" # Transport and Map Symbols
40+
r"\U0001F900-\U0001F9FF" # Supplemental Symbols and Pictographs
4141
r"\u200D"
4242
r"\u2640-\u2642"
4343
)

tests/test_slug.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
("test🙂test", "testtest"),
2626
("test🤷test", "testtest"),
2727
("test🤷🏻‍♀️test", "testtest"),
28+
("test🤖test", "testtest"),
29+
("test🧠test", "testtest"),
2830
],
2931
)
3032
def test_simple_slug(text: str, expected: str) -> None:

0 commit comments

Comments
 (0)