Skip to content

v3.0.1

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Feb 04:01
· 682 commits to main since this release

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(); becomes decancer::cure!("text").unwrap(); or decancer::cure("text", options).unwrap();
  • C/C++: decancer_cure(text, sizeof(text), &error_code); becomes decancer_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 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!

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! ❤️❤️