summaryrefslogtreecommitdiff
path: root/src/useflag/parsers.rs
diff options
context:
space:
mode:
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)