C2022-003-Change-Textboxes-to-RTF-3

This commit is contained in:
2025-12-22 17:16:00 -05:00
parent 751794c1ec
commit d4ecf28147
9 changed files with 151 additions and 202 deletions

View File

@@ -774,7 +774,7 @@ namespace Volian.Controls.Library
tmp = new TreeNode(roc.title);
tmp.Tag = roc;
if (tmp.Text.IndexOf("\\u") > -1) // RO Editor add symbols C2025 - 003
if (tmp.Text.IndexOf("\\u") > -1) // RO Editor add symbols C2022 - 003
{
tmp.Text = Regex.Replace(tmp.Text, @"\\u([0-9]{1,4})\?", m => Convert.ToChar(int.Parse(m.Groups[1].Value)).ToString());
}

View File

@@ -1401,7 +1401,7 @@ namespace Volian.Controls.Library
int position = SelectionStart;
SelectionLength = 0;
var pattern = @"\\u([0-9]{1,4})\?"; // RO Editor add symbols C2025 - 003
var pattern = @"\\u([0-9]{1,4})\?"; // RO Editor add symbols C2022 - 003
foreach (Match match in Regex.Matches(linkValue, pattern, RegexOptions.IgnoreCase))
{
linkValue = linkValue.Replace(match.Value, "\\f1 " + match.Value + " \\f0");