File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
main/java/ru/lanwen/verbalregex
test/java/ru/lanwen/verbalregex Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ You can use *SNAPSHOT* dependency with adding to `pom.xml`:
34
34
VerbalExpression testRegex = VerbalExpression . regex()
35
35
.startOfLine(). then(" http" ). maybe(" s" )
36
36
.then(" ://" )
37
- .maybe(" www." ). anythingButNot (" " )
37
+ .maybe(" www." ). anythingBut (" " )
38
38
.endOfLine()
39
39
.build();
40
40
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public Builder anything() {
186
186
* @param pValue - the string not to match
187
187
* @return this builder
188
188
*/
189
- public Builder anythingButNot (final String pValue ) {
189
+ public Builder anythingBut (final String pValue ) {
190
190
return this .add ("(?:[^" + sanitize (pValue ) + "]*)" );
191
191
}
192
192
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void testAnything() {
35
35
public void testAnythingBut () {
36
36
VerbalExpression testRegex = new VerbalExpression .Builder ()
37
37
.startOfLine ()
38
- .anythingButNot ("w" )
38
+ .anythingBut ("w" )
39
39
.build ();
40
40
41
41
assertFalse ("starts with w" , testRegex .testExact ("what" ));
@@ -342,7 +342,7 @@ public void testGetText() {
342
342
.maybe ("s" )
343
343
.then ("://" )
344
344
.then ("www." )
345
- .anythingButNot (" " )
345
+ .anythingBut (" " )
346
346
.add ("com" ).build ();
347
347
assertEquals (testRegex .getText (testString ), "https://www.google.com" );
348
348
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public void testUrl() {
20
20
.maybe ("s" )
21
21
.then ("://" )
22
22
.maybe ("www." )
23
- .anythingButNot (" " )
23
+ .anythingBut (" " )
24
24
.endOfLine ()
25
25
.build ();
26
26
You can’t perform that action at this time.
0 commit comments