diff --git a/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe b/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe index f2d0fb2..6098dbe 100644 Binary files a/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe and b/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe differ diff --git a/BismNormalizer/BismNormalizer/BismNormalizer.exe b/BismNormalizer/BismNormalizer/BismNormalizer.exe index 219a7df..816b68d 100644 Binary files a/BismNormalizer/BismNormalizer/BismNormalizer.exe and b/BismNormalizer/BismNormalizer/BismNormalizer.exe differ diff --git a/BismNormalizer/BismNormalizer/TabularCompare/TabularMetadata/Measure.cs b/BismNormalizer/BismNormalizer/TabularCompare/TabularMetadata/Measure.cs index ff1effc..ea90275 100644 --- a/BismNormalizer/BismNormalizer/TabularCompare/TabularMetadata/Measure.cs +++ b/BismNormalizer/BismNormalizer/TabularCompare/TabularMetadata/Measure.cs @@ -75,12 +75,14 @@ namespace BismNormalizer.TabularCompare.TabularMetadata //Todo2: still need to parse for /* blah */ type comments. Currently can show missing dependency that doesn't apply if within a comment string whatsRemainingOfLine = line; + int openSquareBracketPosition = 0; + int closeSquareBracketPosition = 0; - while (whatsRemainingOfLine.Contains('[') && whatsRemainingOfLine.Contains(']')) + while (whatsRemainingOfLine.Contains('[') && whatsRemainingOfLine.Contains(']') && openSquareBracketPosition != -1 && closeSquareBracketPosition != -1) { - int openSquareBracketPosition = whatsRemainingOfLine.IndexOf('[', 0); + openSquareBracketPosition = whatsRemainingOfLine.IndexOf('[', 0); //someone has ]] instead of ] - int closeSquareBracketPosition = whatsRemainingOfLine.Replace("]]", " ").IndexOf(']', openSquareBracketPosition + 1); + closeSquareBracketPosition = whatsRemainingOfLine.Replace("]]", " ").IndexOf(']', openSquareBracketPosition + 1); if (openSquareBracketPosition < closeSquareBracketPosition - 1) {