From 307ab0f181bfa29cbdb38d17e8d0a4a3ea11eaff Mon Sep 17 00:00:00 2001 From: EvilDeaaaadd Date: Thu, 1 Aug 2019 21:51:39 +0300 Subject: [PATCH] Make 'y' char uppercase in full uppercase words --- Cargo.toml | 2 +- README.md | 2 +- src/lib.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c80f216..a193960 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "owoify" -version = "0.1.3" +version = "0.1.4" description = "Text owoification library" repository = "https://github.com//owoify" documentation = "https://docs.rs/owoify/" diff --git a/README.md b/README.md index 7d3e335..3511b0f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add this to ``Cargo.toml``: ```toml [dependencies] -owoify = "0.1.3" +owoify = "0.1.4" ``` ``example.rs``: ```rust diff --git a/src/lib.rs b/src/lib.rs index 21e5a3b..d254fa8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,12 +9,12 @@ mod tests { fn owo() { let text = String::from("malfunction me mom.. t-till i break~~"); let owoified = text.owoify(); - println!("\t\t{}", owoified); + println!("\t{}", owoified); } #[test] fn all_match_owo() { let text = String::from("r l R L na Na NA ove !!"); - println!("\t\t{}", text.owoify()); + println!("\t{}", text.owoify()); } } @@ -41,7 +41,7 @@ impl OwOifiable for String { ("(?:R|L)", "W"), ("n([aeiou])", "ny$1"), ("N([aeiou])", "Ny$1"), - ("N([AEIOU])", "Ny$1"), + ("N([AEIOU])", "NY$1"), ("ove", "uv"), ("!+", face), ];