mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +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
|
||||
*/
|
||||
boolean matches(String string);
|
||||
|
||||
static Regex wildcard() {
|
||||
return new Regex() {
|
||||
@Override
|
||||
public boolean matches(String string) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue