diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-11-12 23:05:36 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-11-12 23:05:36 +0000 |
| commit | 732c129c67280df8028bfad6b8da0ce5c2d6d481 (patch) | |
| tree | 3d93cdf4622d5e66b7428eab6accfb87da211105 | |
| parent | 008e94b3d501f56bad03962ec92f75551fdb7b3e (diff) | |
| download | gentoo-utils-732c129c67280df8028bfad6b8da0ce5c2d6d481.tar.gz | |
disallow stars in VersionNumber parser
| -rw-r--r-- | src/atom/parsers.rs | 5 |
1 files changed, 1 insertions, 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())) } } |
