v3.0.1
decancer v3.0.1 is here!
This is a primarily a quick bugfix update! This update fixes a bug that causes decancer to erroneously match -!?hel
with hell
, and a bug that causes Java binding to be outdated compared to other bindings.
And since this update is released 11 hours after the previous major update (v3.0.0
), i'll also quote the previous major changes to keep you updated!
Added a way to customize decancer's behavior!
This update was proposed by #23, and now it's finally here! This makes it a breaking change for both Rust and C/C++ users.
- Rust:
decancer::cure("text").unwrap();
becomesdecancer::cure!("text").unwrap();
ordecancer::cure("text", options).unwrap();
- C/C++:
decancer_cure(text, sizeof(text), &error_code);
becomesdecancer_cure(text, sizeof(text), DECANCER_OPTION_DEFAULT, &error_code);
More advanced way of matching similar strings
Decancer now also adopts an algorithm that lets it detect more complex looking strings! Like:
heeelllooooo
now matches withhello
h-e-l-l-l-o
now matches withhello
h e--l-l!o!o!
now matches withhello
This way of matching strings is inspired by JPBBerry over at CensorBot. Soo kudos to him!
Added Java support!
This was originally attempted by anominy, but is now scrapped, soo i decided to do it myself! For more information, see the README.
Thank you all for supporting decancer! Happy coding! ❤️❤️