Skip to content

Commit d2c5a10

Browse files
committed
Do not include an empty string into 'from_short_name' match chain
1 parent f81ded9 commit d2c5a10

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

scripts/unicode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def generate_script_impl(f):
312312
#[inline]
313313
pub(crate) fn inner_from_short_name(input: &str) -> Option<Self> {
314314
match input {
315-
"" => Some(Script::Unknown),
316315
"Zyyy" => Some(Script::Common),
317316
"Zinh" => Some(Script::Inherited),
318317
""")

src/tables.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,6 @@ impl Script {
15511551
#[inline]
15521552
pub(crate) fn inner_from_short_name(input: &str) -> Option<Self> {
15531553
match input {
1554-
"" => Some(Script::Unknown),
15551554
"Zyyy" => Some(Script::Common),
15561555
"Zinh" => Some(Script::Inherited),
15571556
"Adlm" => Some(Script::Adlam),

0 commit comments

Comments
 (0)