Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Source/ExcelDna.IntelliSense/UIMonitor/FormulaParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ internal static bool TryGetFormulaInfo(string formulaPrefix, out string function
// the regex below still applies.
formulaPrefix = Regex.Replace(formulaPrefix, "(\"[^\"]*\")", string.Empty);

// Remove the commas inside structured reference patterns like "Table1[[#All],[Field]]"
formulaPrefix = Regex.Replace(formulaPrefix, "(\\[\\[.*?\\])\\s*,", "$1");

// Remove sub-formulae
formulaPrefix = Regex.Replace(formulaPrefix, "(\\([^\\(\\)]*\\))| ", string.Empty);

Expand Down