Removed mistaken bracket in text replace operation

This commit is contained in:
Ian McCubbin 2024-03-15 13:04:06 +00:00 committed by BobLd
parent 321f321e53
commit 9056d2bdff

View File

@ -82,7 +82,7 @@
// as single-byte or multiple-byte character codes.
// Note: order of replacing is important. Replace slash first before brackets.
text = text.Replace(@"\", @"\\)"); // Escape any slash '\' -> '\\'
text = text.Replace(@"\", @"\\"); // Escape any slash '\' -> '\\'
text = text.Replace("(", @"\("); // Escape any open brackets '(' -> '\('
text = text.Replace(")", @"\)"); // Escape any close brackets ')' -> '\)'
@ -114,4 +114,4 @@
return $"{Text} {Symbol}";
}
}
}
}