This commit is contained in:
jl
2024-01-17 15:56:28 +08:00
parent 9d5221ba0d
commit ae55e77ef8
4 changed files with 66 additions and 64 deletions

View File

@ -9,6 +9,7 @@ using Epost.Common;
using System.Web.Helpers;
using System.Data;
using System.Configuration;
using System.Text.RegularExpressions;
namespace Epost.TestToolsWeb.Tests.Controllers
{
@ -19,20 +20,16 @@ namespace Epost.TestToolsWeb.Tests.Controllers
[TestMethod]
public void d()
{
string showmes = "211100|394892345|938275908324|93875|934725";
if (showmes.Length > 30)
string showmes = "211100||938275908324|93875|934725";
if (!Regex.IsMatch(showmes, @"[\u4e00-\u9fa5]"))
{
string newstr = showmes.Substring(30, showmes.Length-30);
if (newstr.Length > 30)
{
showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length-30);
}
else
{
showmes = showmes.Substring(0, 30) + "\r" + newstr;
}
}
}
else {
LogHelper.WriteLogInfo("dasf");
}
}
}
}