Skip to content

Commit

Permalink
DYN-8082 Do not assume array index (#15772)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang authored Jan 27, 2025
1 parent e14e089 commit 2f4aae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DynamoCoreWpf/UI/GuidedTour/CustomRichTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ private static FlowDocument GetCustomDocument(string Text)
//Finding the end character that indicates the hyperlink is complete (no empty spaces are allowed in hyperlink URL just in the name)
if (word.Contains("="))
{
string linkURL = word.Split('=')[1];
hyperlinkName += word.Split('=')[0];
string linkURL = word.Split('=').LastOrDefault();
hyperlinkName += word.Split('=').FirstOrDefault();

Run run3 = new Run(hyperlinkName.Replace("#", ""));
Hyperlink link = new Hyperlink(run3);
Expand Down

0 comments on commit 2f4aae1

Please sign in to comment.