2 releases
0.1.1 | Feb 22, 2025 |
---|---|
0.1.0 | Feb 22, 2025 |
#2 in #followed
270 downloads per month
3KB
is_hawk_tuah
This Rust crate provides a single function, is_hawk_tuah
, which checks if a
string contains a hawk, followed by a too
or a two
.
Inspired by the Hailey Welch, and the legendary is-even library.
Usage
use is_hawk_tuah::is_hawk_tuah;
assert!(is_hawk_tuah("hawk too").unwrap());
assert!(is_hawk_tuah("hawk two").unwrap());
assert!(is_hawk_tuah("hawk to").unwrap());
assert!(is_hawk_tuah("hawk tuah").unwrap());
Dependencies
~2–3MB
~53K SLoC