Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ import io.github.multiform_validator.CnpjValidator;

public class Main {
public static void main(String[] args) {
System.out.println(emailValidator.isEmail("foo@bar.com")); // true
System.out.println(emailValidator.isEmail("foo@bar")); // false
System.out.println(EmailValidator.isEmail("foo@bar.com")); // true
System.out.println(EmailValidator.isEmail("foo@bar")); // false

System.out.println(cpfValidator.cpfIsValid("123.456.789-09")); // true
System.out.println(cpfValidator.cpfIsValid("123.456.789-00")); // false
System.out.println(CpfValidator.cpfIsValid("123.456.789-09")); // true
System.out.println(CpfValidator.cpfIsValid("123.456.789-00")); // false

System.out.println(cnpjValidator.cnpjIsValid("12.345.678/0001-09")); // true
System.out.println(cnpjValidator.cnpjIsValid("12.345.678/0001-00")); // false
System.out.println(CnpjValidator.cnpjIsValid("12.345.678/0001-09")); // true
System.out.println(CnpjValidator.cnpjIsValid("12.345.678/0001-00")); // false

System.out.println(Validator.isAscii("foo")); // true
System.out.println(Validator.isAscii("foo©")); // false
}
}
```

Lib is in development, there's other validators that you can use, but they are not yet documented.
Lib is in development, there's other validators that you can use, but they are not yet documented.