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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy