A library that removes common unicode confusables/homoglyphs from strings.
This may not be a major update, but this update brings in lots of big changes!
formatter
option is now renamed to all
!ascii_only
and alphanumeric_only
options!regex
crate)Thank you so much for supporting decancer
! Much love! :heart::heart::heart:
This update brings in lots of notable fixes and changes!
.into_str()
, use .into()
or .as_str()
instead.v3.0.0
.Thank you so much for supporting decancer
! Much love! :heart::heart:
This update brings in a lot of new features!
findMultiple()
method that matches several keywords!censor()
method that censors matches of a string!censorMultiple()
method that censors matches of several keywords!replace()
method that replaces matches of a string!replaceMultiple()
method that replaces matches of several keywords!Thank you so much for supporting decancer
! Much love :heart::heart:
This update brings in several notable changes! Most importantly, added multi-character leetspeak matching support!
Other than that, other changes in this update are as follows:
find()
method for yielding all matches of a string!decancer_free
to decancer_cured_free
for consistency in the C/C++ binding!decancer_error_t
is now a struct containing the error message, thus rendering the decancer_error
function obselete!options
and leetspeak
feature flags (enabled by default) that can be opt-out!decancer_cure_char
by adding a decancer_translation_free
function!Thank you so much for supporting decancer
! Much love :heart:
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! :heart::heart:
Yup, another major update! This update brings in three major changes:
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.
decancer::cure("text").unwrap();
becomes decancer::cure!("text").unwrap();
or decancer::cure("text", options).unwrap();
decancer_cure(text, sizeof(text), &error_code);
becomes decancer_cure(text, sizeof(text), DECANCER_OPTION_DEFAULT, &error_code);
Decancer now also adopts an algorithm that lets it detect more complex looking strings! Like:
heeelllooooo
now matches with hello
h-e-l-l-l-o
now matches with hello
h e--l-l!o!o!
now matches with hello
This way of matching strings is inspired by JPBBerry over at CensorBot. Soo kudos to him!
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! Much love!! :heart::heart::heart:
decancer v2.0.2 is here!
What this update brings:
node:
imports in the Node.js binding, as the node:
protocol import is still not widely supported at the moment.Thank you for supporting decancer as always! Happy coding! ❤️
decancer v2.0.1 is here!
This is a minor update following the previous major v2.0.0
update. It adds 24 more codepoints and fixes several incorrect translations by incorporating codepoints from other sources/projects!
Thank you for supporting decancer as always! ❤️❤️❤️
decancer v2.0.0 is here!
This is a major update that brings many features with several breaking changes!
What this update brings:
Thank you for supporting decancer as always! Happy 2024! ❤️❤️❤️