Make 'y' char uppercase in full uppercase words
This commit is contained in:
parent
62d94f958c
commit
307ab0f181
|
@ -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/"
|
||||
|
|
|
@ -12,7 +12,7 @@ Add this to ``Cargo.toml``:
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
owoify = "0.1.3"
|
||||
owoify = "0.1.4"
|
||||
```
|
||||
``example.rs``:
|
||||
```rust
|
||||
|
|
|
@ -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),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue