summaryrefslogtreecommitdiff
path: root/src/useflag/parsers.rs
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-11-20 23:27:41 +0000
committerJohn Turner <jturner.usa@gmail.com>2025-11-20 23:27:41 +0000
commit699d4bafd0fb1e2e7bf12e62a3c9673bc4bfa578 (patch)
tree08675cab55297243c435345efbb45ecb6cea0bab /src/useflag/parsers.rs
parentff7d9b312f77880c237aad4dc07a9d340d750be6 (diff)
downloadgentoo-utils-699d4bafd0fb1e2e7bf12e62a3c9673bc4bfa578.tar.gz
update mon and use new ascii parsers
Diffstat (limited to 'src/useflag/parsers.rs')
-rw-r--r--src/useflag/parsers.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/useflag/parsers.rs b/src/useflag/parsers.rs
index fc371a6..ca5929d 100644
--- a/src/useflag/parsers.rs
+++ b/src/useflag/parsers.rs
@@ -1,4 +1,4 @@
-use mon::{Parser, ParserIter, alphanumeric, one_of, tag};
+use mon::{Parser, ParserIter, ascii_alphanumeric, one_of, tag};
use crate::{
Parseable,
@@ -9,8 +9,11 @@ impl<'a> Parseable<'a, &'a str> for UseFlag {
type Parser = impl Parser<&'a str, Output = Self>;
fn parser() -> Self::Parser {
- let start = alphanumeric();
- let rest = alphanumeric().or(one_of("+_@-".chars())).repeated().many();
+ let start = ascii_alphanumeric();
+ let rest = ascii_alphanumeric()
+ .or(one_of("+_@-".chars()))
+ .repeated()
+ .many();
start
.and(rest)