From 453f66c3a18bf6f669218aac0d61ac101cb32d00 Mon Sep 17 00:00:00 2001 From: Jack Gleeson Date: Tue, 12 Oct 2021 12:37:47 -0700 Subject: [PATCH] Better link handling --- Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 9ab1bca..ba60f7d 100644 --- a/Program.cs +++ b/Program.cs @@ -188,7 +188,6 @@ namespace spawsh } else { - Console.WriteLine("here"); linksInPage = buildLinkSet(LineBuffer); } @@ -282,8 +281,6 @@ namespace spawsh inputString = broken[1]; } - Console.WriteLine("here - " + inputString); - if (inputString.Contains("gemini://")) { inputString = inputString.Trim(); @@ -351,6 +348,10 @@ namespace spawsh try { description = holder.Split('\t')[1]; + if (description == null || description == "") + { + description = holder.Split(' ')[1]; + } holder = holder.Split('\t')[0].Substring(1); } catch -- 2.45.2