Function pretty_regex::just
source · pub fn just(text: impl Into<String>) -> PrettyRegex<Text>
Expand description
Adds a matching text into a PrettyRegex
.
Example
assert!(just("a").to_regex_or_panic().is_match("a"));
assert!(!just("a").to_regex_or_panic().is_match("b"));