bd_phone_validator 1.1.0
bd_phone_validator: ^1.1.0 copied to clipboard
Validate, normalize, format and detect the operator (Grameenphone, Robi, Banglalink, Teletalk, Airtel) of Bangladeshi mobile numbers. Pure Dart, zero dependencies.
1.1.0 #
- Pure Dart: removed the unnecessary
flutterSDK dependency. Now usable in server and CLI projects. Minimum SDK is Dart 3.0. - Added
BdOperatorenum andBdPhoneValidator.detectOperator. - Added
BdPhonevalue object viaBdPhoneValidator.tryParse(national,e164,operator,formatted,masked). - Added
normalizeandtoE164. - Added lenient parsing (
strict: false): spaces,-,., parentheses,0088prefix and Bangla digits. - Added
BdPhoneValidator.formValidatorforTextFormField. validateis unchanged by default (strict), fully backward compatible.- Removed leftover template class
Awesome. - Added CI, automated publishing workflow, Dependabot, topics, new README, dartdoc and more tests.
1.0.3 #
- Documentation and test improvements.
1.0.2 #
- Optimized regex, added unit tests, updated docs.
1.0.1 #
- Fixed incorrect regex syntax.
1.0.0 #
- Initial release.