Skip to content

Commit 59fbccd

Browse files
committed
Merge pull request #33 from Tavio/fix_method_name
renaming anythingBut method name
2 parents 8d59494 + 0003de4 commit 59fbccd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can use *SNAPSHOT* dependency with adding to `pom.xml`:
3434
VerbalExpression testRegex = VerbalExpression.regex()
3535
.startOfLine().then("http").maybe("s")
3636
.then("://")
37-
.maybe("www.").anythingButNot(" ")
37+
.maybe("www.").anythingBut(" ")
3838
.endOfLine()
3939
.build();
4040

src/main/java/ru/lanwen/verbalregex/VerbalExpression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public Builder anything() {
186186
* @param pValue - the string not to match
187187
* @return this builder
188188
*/
189-
public Builder anythingButNot(final String pValue) {
189+
public Builder anythingBut(final String pValue) {
190190
return this.add("(?:[^" + sanitize(pValue) + "]*)");
191191
}
192192

src/test/java/ru/lanwen/verbalregex/BasicFunctionalityUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void testAnything() {
3535
public void testAnythingBut() {
3636
VerbalExpression testRegex = new VerbalExpression.Builder()
3737
.startOfLine()
38-
.anythingButNot("w")
38+
.anythingBut("w")
3939
.build();
4040

4141
assertFalse("starts with w", testRegex.testExact("what"));
@@ -342,7 +342,7 @@ public void testGetText() {
342342
.maybe("s")
343343
.then("://")
344344
.then("www.")
345-
.anythingButNot(" ")
345+
.anythingBut(" ")
346346
.add("com").build();
347347
assertEquals(testRegex.getText(testString), "https://www.google.com");
348348

src/test/java/ru/lanwen/verbalregex/RealWorldUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void testUrl() {
2020
.maybe("s")
2121
.then("://")
2222
.maybe("www.")
23-
.anythingButNot(" ")
23+
.anythingBut(" ")
2424
.endOfLine()
2525
.build();
2626

0 commit comments

Comments
 (0)