- fix: generate password with all characters
- add
LocalRegex.generatePassword()
method
- updated Date regex
- Regex for Student ID formats
- fix: avoid duplication of ID characters when formatting
- fix: allow lowercase values to be validated in ids
- added functionality to check if landline number is valid
LocalRegex.isZimLandline('0242790122')
- added additional parameter to
formatNumber
extension, you can now optionally choose to clean phone number if its formatted (defaults totrue
).
final p = '(077) 612-3098'.formatNumber(formatType: FormatType.countryCode, cleanNumber: true)
// result
// (077) 612-3098 -> 0776123098
- minor changes
- fix update sdk dependency version
- format IDs with 2 new formatting types.
- breaking update: format type on phone numbers is now a named parameter.
- fix imports
- More national identity number tests
- New extension to allow formatting of a string to proper national identity number structure
- This version brings breaking changes which need to be carefully looked into.
- Most of the method names have been changed
- Usage of MIT License
- Format Number is now a String extension
- Removed PasswordTextFormField widget
- FormatTypes -> FormatType (enum)
- Dates regex Matches YYYY-MM-DD or YYYY/MM/DD for now
- URL Regex
- VoIP numbers validation
- Regex consistency
- Password regex: Add more special characters
- PasswordTextFormField: dispose controller
- PasswordTextFormField: styling
- PasswordTextFormField
- Fixed password regex
- Updated README.md
- Documentation
- This version brings breaking changes which need to be carefully looked into.
- All methods are now static which means no more declaration and initialization
- Changes into naming of methods e.g isZwMobile => isValidZimMobile to make them more descriptive
- Password validation is now available
LocalRegex.isValidPassword
- Fixed minor bug for numbers formatted in weird ways
- Properly formatted code
- Fixed email regex bug
- Code formatting
- Allow 6 or 7 national id numbers (old and new id numbers)
- Mobile number formatting
- Null safety migration
- Fixed + sign bug on mobile numbers
- Removed duplicate characters on email validation
- Improved email validation
- Improved for easy usability
- Updated/totally changed assertion methods
- New method to assert all mobile numbers at once
- Assertion methods:
- isEmail, isNetone, isTelecel, isEconet, isZwMobile, isZw (for National Id, isZwPassport, isZwNumberPlate, isZwNumberPlate
First release of localregex