Skip to content

v0.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jul 09:45
· 33 commits to main since this release

What's new?

first_match() to get the first identification - docs

let identifier = lemmeknow::Identifier::default();
let some_result = identifier.first_match("8888888888");
let not_gonna_find = identifier.first_match("a friend for swanandx");
  
assert_eq!(some_result.unwrap().data.name, "Phone Number");
assert!(not_gonna_find.is_none());

what else? well actually, we got old stuff back!

Breaking Changes

  • Identify is now Identifier ( makes more sense ).
  • min_rarity and max_rarity are now f32 instead of Option<f32> ( let me know if Option was better )

Bug Fix for API users: We used to call build_regexes inside identify, which kept building regexes everytime we call identify making it slow. Instead of this, now regexes are built and stored in lazy static. Which means they are compiled only when first accessed.