| Crates.io | is_hawk_tuah |
| lib.rs | is_hawk_tuah |
| version | 0.1.1 |
| created_at | 2025-02-22 10:50:38.770814+00 |
| updated_at | 2025-02-22 10:53:44.6554+00 |
| description | Check if the sentence contains Hawk Tuah |
| homepage | |
| repository | https://github.com/korewaChino/is_hawk_tuah |
| max_upload_size | |
| id | 1565296 |
| size | 5,054 |
is_hawk_tuahThis 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.
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());