mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-15 00:42:06 +01:00
Add Regex.wildcard() factory method
This commit is contained in:
parent
fffb4b17a4
commit
15142b5775
1 changed files with 9 additions and 0 deletions
|
@ -25,4 +25,13 @@ public interface Regex {
|
||||||
* @return true if matches, false otherwise
|
* @return true if matches, false otherwise
|
||||||
*/
|
*/
|
||||||
boolean matches(String string);
|
boolean matches(String string);
|
||||||
|
|
||||||
|
static Regex wildcard() {
|
||||||
|
return new Regex() {
|
||||||
|
@Override
|
||||||
|
public boolean matches(String string) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue