From 598a4b882e683a62d930e0ae6220f5404879d2d8 Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 27 Feb 2025 09:23:52 +0100 Subject: fix: missing prefix detection --- src/values/length.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/values/length.rs b/src/values/length.rs index 28a7156..556f8ff 100644 --- a/src/values/length.rs +++ b/src/values/length.rs @@ -50,7 +50,7 @@ impl Value for Length { _ => Err(ParseLengthError::InvalidType), } } else { - if s.starts_with(|c: char| !c.is_alphabetic()) { + if s.starts_with(|c: char| c.is_ascii_digit()) { return Err(ParseLengthError::MissingPrefix); } -- cgit v1.2.3