diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-02 09:51:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-02 09:51:17 +0300 |
commit | ad3a6175b43ed553944497947e43846f24319e4e (patch) | |
tree | 3d2d09f26329ff8a15067ecb2f4713c2a34f9f00 | |
parent | 7af17d08b190712cce3bd799d75ee66902b87696 (diff) | |
download | riki-ad3a6175b43ed553944497947e43846f24319e4e.tar.gz |
fix: allow period and underscore in PageSpec globs
Sponsored-by: author
-rw-r--r-- | src/pagespec.lalrpop | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pagespec.lalrpop b/src/pagespec.lalrpop index 49eeb08..c7c762a 100644 --- a/src/pagespec.lalrpop +++ b/src/pagespec.lalrpop @@ -8,7 +8,7 @@ pub Expr: Box<Expr> = { } Term: Box<Expr> = { - r"(\w|[*?/-])+" => Box::new(Expr::Glob(<>.to_string())), + r"(\w|[._*?/-])+" => Box::new(Expr::Glob(<>.to_string())), "!" <t:Term> => Box::new(Expr::Negate(t)), "(" <e:Expr> ")" => e, } |