Skip to content

Commit

Permalink
Fix Regex Tree pretty print bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sblom committed Dec 14, 2023
1 parent 57a9651 commit 588c7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RegExtract/RegexCaptureGroupTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ string[] TreeViz(RegexCaptureGroupNode tree)
}
}

var topline = tree.substring.text.Substring(left, tree.children[0].substring.range.start - left);
var topline = tree.substring.text.Substring(0, tree.children[0].substring.range.start - left);
for (int i = 0; i < blocks.Length; i++)
{
pad = new char[blocks[i][0].Length];
Expand Down

0 comments on commit 588c7fb

Please sign in to comment.