summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 013782f..a8d1416 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1078,6 +1078,13 @@ where
r#if(|_| true)
}
+pub fn any1<I>() -> impl Parser<I, Output = I>
+where
+ I: Input,
+{
+ r#if(|_| true).repeated().at_least(1).recognize()
+}
+
#[cfg(feature = "regex")]
pub mod str {