Add some phonenumberutil functions

This commit is contained in:
Vlasislav Kashin
2025-07-09 13:22:32 +03:00
parent 29f5e5664c
commit 7692433296
11 changed files with 1409 additions and 91 deletions

View File

@@ -21,7 +21,7 @@ impl RegexBasedMatcher {
// find first occurrence
if allow_prefix_match {
Ok(regexp.consume_start(phone_number).is_some())
Ok(regexp.matches_start(phone_number))
} else {
Ok(regexp.full_match(phone_number))
}