From fa4521a08f5c92f68c4680174a4dcde33610d7bb Mon Sep 17 00:00:00 2001 From: Alberto Spelta Date: Tue, 5 Mar 2024 17:23:52 +0100 Subject: [PATCH] Fix missing digit in IsSquareBraketsRequired (#17) --- src/Dax.Vpax.Obfuscator/Extensions/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dax.Vpax.Obfuscator/Extensions/StringExtensions.cs b/src/Dax.Vpax.Obfuscator/Extensions/StringExtensions.cs index f8323bb..8ee1e32 100644 --- a/src/Dax.Vpax.Obfuscator/Extensions/StringExtensions.cs +++ b/src/Dax.Vpax.Obfuscator/Extensions/StringExtensions.cs @@ -36,7 +36,7 @@ static bool IsSquareBraketsRequired(string table, string column) { if (table.Length > 0) { - if ("012345679".Contains(table[0])) + if ("0123456789".Contains(table[0])) return true; // Table name start with a digit if (table.Any((c) => c != '_' && !DaxTextObfuscator.CharSet.Contains(c)))