[jOOQ/jOOQ#8939] Handle __ prefix in file names

This commit is contained in:
Lukas Eder 2019-07-25 17:26:33 +02:00
parent 5b1b37fe35
commit 95168c1e76

View File

@ -53,7 +53,7 @@ public final class FlywayFileComparator implements Comparator<File> {
int i1 = s1.indexOf("__");
int i2 = s2.indexOf("__");
if (i1 != -1 && i2 != -1) {
if (i1 >= 1 && i2 >= 1) {
FlywayVersion v1 = FlywayVersion.fromVersion(s1.substring(1, i1));
FlywayVersion v2 = FlywayVersion.fromVersion(s2.substring(1, i2));