From 732c129c67280df8028bfad6b8da0ce5c2d6d481 Mon Sep 17 00:00:00 2001 From: John Turner Date: Wed, 12 Nov 2025 23:05:36 +0000 Subject: [PATCH] disallow stars in VersionNumber parser --- src/atom/parsers.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/atom/parsers.rs b/src/atom/parsers.rs index 60f9223..fd212cd 100644 --- a/src/atom/parsers.rs +++ b/src/atom/parsers.rs @@ -40,10 +40,7 @@ impl<'a> Parseable<'a, &'a str> for VersionNumber { type Parser = impl Parser<&'a str, Output = Self>; fn parser() -> Self::Parser { - numeric1() - .followed_by(tag("*").opt()) - .recognize() - .map(|output: &str| VersionNumber(output.to_string())) + numeric1().map(|output: &str| VersionNumber(output.to_string())) } }