aboutsummaryrefslogtreecommitdiffstats
path: root/src/arg.rs
blob: eaea67b76843ba8d3137c4eadc76c428ff12b3ab (plain)
1
2
3
4
5
6
7
8
use regex::{self, Regex};


pub fn is_suggestion_id(s: &str) -> Result<bool, regex::Error> {
    let re = Regex::new(r"^\d+$")?;

    Ok(re.is_match(s))
}