Make 'y' char uppercase in full uppercase words

This commit is contained in:
EvilDeaaaadd 2019-08-01 21:51:39 +03:00
parent 62d94f958c
commit 307ab0f181
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "owoify" name = "owoify"
version = "0.1.3" version = "0.1.4"
description = "Text owoification library" description = "Text owoification library"
repository = "https://github.com//owoify" repository = "https://github.com//owoify"
documentation = "https://docs.rs/owoify/" documentation = "https://docs.rs/owoify/"

View File

@ -12,7 +12,7 @@ Add this to ``Cargo.toml``:
```toml ```toml
[dependencies] [dependencies]
owoify = "0.1.3" owoify = "0.1.4"
``` ```
``example.rs``: ``example.rs``:
```rust ```rust

View File

@ -9,12 +9,12 @@ mod tests {
fn owo() { fn owo() {
let text = String::from("malfunction me mom.. t-till i break~~"); let text = String::from("malfunction me mom.. t-till i break~~");
let owoified = text.owoify(); let owoified = text.owoify();
println!("\t\t{}", owoified); println!("\t{}", owoified);
} }
#[test] #[test]
fn all_match_owo() { fn all_match_owo() {
let text = String::from("r l R L na Na NA ove !!"); 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"), ("(?:R|L)", "W"),
("n([aeiou])", "ny$1"), ("n([aeiou])", "ny$1"),
("N([aeiou])", "Ny$1"), ("N([aeiou])", "Ny$1"),
("N([AEIOU])", "Ny$1"), ("N([AEIOU])", "NY$1"),
("ove", "uv"), ("ove", "uv"),
("!+", face), ("!+", face),
]; ];