Fix DatabaseConsistencyCheck SQL normalizer.

This commit is contained in:
Greyson Parrelli 2025-01-10 10:37:39 -05:00
parent e5e74967dc
commit b65610f060

View file

@ -112,6 +112,7 @@ class DatabaseConsistencyTest {
.map { it.trim() }
.joinToString(separator = " ")
.replace(Regex.fromLiteral(" ,"), ",")
.replace(",([^\\s])".toRegex(), ", $1")
.replace(Regex("\\s+"), " ")
.replace(Regex.fromLiteral("( "), "(")
.replace(Regex.fromLiteral(" )"), ")")