dart-validate icon indicating copy to clipboard operation
dart-validate copied to clipboard

Port of Apache-Validate to Dart

Results 5 dart-validate issues
Sort by recently updated
recently updated
newest added

It appears that the email validation RegEx fails on any domain with fewer than 2 characters (e.g., q.com).

The purpose of this pull request is to migrate the package to null safety.

The regex for validate email here https://github.com/MikeMitterer/dart-validate/blob/4af87cb6c1892421eab1ce27cdfe4c872ddb6ef0/lib/validate.dart#L57 correctly validate the address **[email protected]** but fails with **[email protected]** which is a valid address either.

As specified in the dart lang guide, [we should not catch Argument Error exceptions](https://www.dartlang.org/guides/language/effective-dart/usage#dont-explicitly-catch-error-or-types-that-implement-it). > When an object of that type or one of its subinterfaces like ArgumentError is thrown,...