Skip to content

Commit 098b2be

Browse files
committed
2 parents 5b18b61 + 9ffd3a2 commit 098b2be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/ExcelDna.IntelliSense/UIMonitor/FormulaParser.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ static class FormulaParser
1717
internal static bool TryGetFormulaInfo(string formulaPrefix, out string functionName, out int currentArgIndex)
1818
{
1919
Debug.Assert(formulaPrefix != null);
20+
21+
if (formulaPrefix.Count(c => c == '\"') % 2 != 0)
22+
{
23+
formulaPrefix = string.Concat(formulaPrefix, '\"');
24+
}
25+
2026
formulaPrefix = Regex.Replace(formulaPrefix, "(\"[^\"]*\")|(\\([^\\(\\)]*\\))| ", string.Empty);
2127

2228
while (Regex.IsMatch(formulaPrefix, "\\([^\\(\\)]*\\)"))

0 commit comments

Comments
 (0)