Skip to content

Commit 5c9f63b

Browse files
committed
Readme update and bintray plugin
1 parent 920a369 commit 5c9f63b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EmailValidator4J
22
[![Build Status](https://travis-ci.org/egulias/EmailValidator4J.svg?branch=master)](https://travis-ci.org/egulias/EmailValidator4J)
33

4-
RFC strict EmailValidator for Java
4+
Simple RFC compliant EmailValidator for Java.
55

66
**Suported RFCs**
77

@@ -26,11 +26,26 @@ dependencies {
2626

2727
[JCenter]: https://bintray.com/egulias/maven/email-validator-4j
2828

29+
## Why not using ANTLR
30+
Because you don't want to download internet to validate an email.
2931

3032
Getting Started
3133
---------------
3234

3335
```java
36+
37+
import emailvalidator4j.EmailValidator
38+
39+
public class ValidateEmail {
40+
public static void main (String[] args) {
41+
EmailValidator validator = new EmailValidator();
42+
if (validator->isValid(args[0]) {
43+
System.out.println("Valid email");
44+
} else {
45+
System.out.println("Invalid email");
46+
}
47+
}
48+
}
3449
```
3550

3651
Validation Strategies

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
2+
plugins {
3+
id "com.jfrog.bintray" version "1.1"
4+
}
5+
16
apply plugin: 'java'
27
apply plugin: 'idea'
3-
48
version = '1.0'
59

610
repositories {

0 commit comments

Comments
 (0)