Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: * should match at least one character (#2565)
Yilong Lib1ae06e9fa50
diff --git a/plugin/db/driver.go b/plugin/db/driver.goindex 0d91d2a5d5..02904732c6 100644--- a/plugin/db/driver.go+++ b/plugin/db/driver.go@@ -262,7 +262,7 @@ func ParseMigrationInfo(filePath, filePathTemplate string) (*MigrationInfo, erro// Escape "." characters to match literals instead of using it as a wildcard.filePathRegex := strings.ReplaceAll(filePathTemplate, `.`, `\.`)- filePathRegex = strings.ReplaceAll(filePathRegex, `/*/`, `/[^/]*/`)+ filePathRegex = strings.ReplaceAll(filePathRegex, `/*/`, `/[^/]+/`)filePathRegex = strings.ReplaceAll(filePathRegex, `**`, `.*`)for _, placeholder := range placeholderList {