Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan authored Jul 9, 2024
1 parent 1abcd0a commit fc52264
Showing 1 changed file with 10 additions and 7 deletions.
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("[email protected]")); // true
System.out.println(emailValidator.isEmail("foo@bar")); // false
System.out.println(EmailValidator.isEmail("[email protected]")); // 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.

0 comments on commit fc52264

Please sign in to comment.