Skip to content

Commit 5cad8a6

Browse files
author
MerkushevKirill
committed
fix - scm repo links fix
1 parent 10df9a7 commit 5cad8a6

File tree

2 files changed

+40
-15
lines changed

2 files changed

+40
-15
lines changed

README.md

+30-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
11
JavaVerbalExpressions
22
=====================
3-
VerbalExpressions is a Java library that helps to construct difficult regular expressions - ported from the wonderful [JSVerbalExpressions](https://github.com/VerbalExpressions/JSVerbalExpressions).
3+
[<img src="http://img.shields.io/github/release/VerbalExpressions/JavaVerbalExpressions.svg?style=flat">](https://github.com/VerbalExpressions/JavaVerbalExpressions/releases/latest)
4+
[<img src="http://img.shields.io/badge/ported%20from-%20JSVerbalExpressions-orange.svg?style=flat">](https://github.com/VerbalExpressions/JSVerbalExpressions)
5+
6+
VerbalExpressions is a Java library that helps to construct difficult regular expressions.
7+
8+
9+
10+
##Getting Started
11+
12+
Maven Dependency:
13+
14+
```xml
15+
<dependency>
16+
<groupId>ru.lanwen.verbalregex</groupId>
17+
<artifactId>java-verbal-expressions</artifactId>
18+
<version>1.0</version>
19+
</dependency>
20+
```
21+
22+
You can use *SNAPSHOT* dependency with adding to `pom.xml`:
23+
```xml
24+
<repositories>
25+
<repository>
26+
<id>ossrh</id>
27+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
28+
</repository>
29+
</repositories>
30+
```
431

532
##Examples
633
```java
7-
834
VerbalExpression testRegex = new VerbalExpression.Builder()
935
.startOfLine()
1036
.then("http")
@@ -22,7 +48,7 @@ String url = "https://www.google.com";
2248
// the regex
2349
testRegex.testExact(url); //True
2450

25-
testRegex.toString(); // Ouputs the regex used:
51+
testRegex.toString(); // Outputs the regex used:
2652
// ^(http)(s)?(\:\/\/)(www\.)?([^\ ]*)$
2753

2854
VerbalExpression testRegex = new VerbalExpression.Builder()
@@ -36,9 +62,7 @@ String testString = "defzzz";
3662
//Use VerbalExpression's test() method to test if parts if the string match the regex
3763
testRegex.test(testString); //true
3864
testRegex.testExact(testString); //false
39-
40-
41-
```
65+
```
4266

4367
## Other implementations
4468
You can view all implementations on [VerbalExpressions.github.io](http://VerbalExpressions.github.io)

pom.xml

+10-9
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
<packaging>jar</packaging>
1515

1616
<name>JavaVerbalExpressions</name>
17-
<description>VerbalExpressions is a Java library that helps to construct difficult regular expressions -
18-
ported from the wonderful JSVerbalExpressions
19-
</description>
20-
<url>https://github.com/lanwen/JavaVerbalExpressions</url>
17+
<description>VerbalExpressions is a Java library that helps to construct difficult regular expressions</description>
18+
<url>https://github.com/VerbalExpressions/JavaVerbalExpressions</url>
2119

2220

2321
<properties>
@@ -26,23 +24,25 @@
2624

2725

2826
<scm>
29-
<url>https://github.com/lanwen/JavaVerbalExpressions.git</url>
30-
<connection>scm:[email protected]:lanwen/JavaVerbalExpressions.git</connection>
31-
<developerConnection>scm:[email protected]:lanwen/JavaVerbalExpressions.git</developerConnection>
27+
<url>git@github.com:VerbalExpressions/JavaVerbalExpressions.git</url>
28+
<connection>scm:git:git@github.com:VerbalExpressions/JavaVerbalExpressions.git</connection>
29+
<developerConnection>scm:git:git@github.com:VerbalExpressions/JavaVerbalExpressions.git</developerConnection>
3230
</scm>
3331

3432

3533
<licenses>
3634
<license>
3735
<name>The MIT License (MIT)</name>
38-
<url>https://github.com/lanwen/JavaVerbalExpressions/blob/master/LICENSE</url>
36+
<url>https://raw.githubusercontent.com/VerbalExpressions/JavaVerbalExpressions/master/LICENSE</url>
3937
<distribution>repo</distribution>
4038
</license>
4139
</licenses>
4240

4341
<developers>
4442
<developer>
45-
<id>EmilS</id>
43+
<id>lanwen</id>
44+
<name>Kirill Merkushev</name>
45+
<email>[email protected]</email>
4646
</developer>
4747
</developers>
4848

@@ -92,4 +92,5 @@
9292
</plugin>
9393
</plugins>
9494
</reporting>
95+
9596
</project>

0 commit comments

Comments
 (0)