Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package liquibase.changelog;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexResourceFilter implements IncludeAllFilter {
private final static Pattern PATTERN = Pattern.compile(".*\\.sql$");
@Override
public boolean include(String changeLogPath) {
Matcher matcher = PATTERN.matcher(changeLogPath);
return matcher.matches();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment