From 57594687dbb3c0f50f91c85c112767711a9ed9ba Mon Sep 17 00:00:00 2001 From: Michael Flaherty Date: Fri, 17 Aug 2018 00:24:33 -0700 Subject: [PATCH] Do not auto-close `'s --- IRC-Relay/Helpers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRC-Relay/Helpers.cs b/IRC-Relay/Helpers.cs index 5d3528c..11ce3bc 100644 --- a/IRC-Relay/Helpers.cs +++ b/IRC-Relay/Helpers.cs @@ -90,7 +90,8 @@ public static string Unescape(string input) slice.Append(input[j]); } - slice.Append('`'); // append the '`' for insertion later + if (j < input.Length) + slice.Append('`'); // append the '`' for insertion later locations.Add(i); // push the index of the first '`' peices.Add(slice); // push the captured string