Skip to content

Commit

Permalink
fix: 修复 keyin 转参后变成小写的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uyoufu committed Mar 5, 2024
1 parent 6c11e9c commit be041ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MSAddinTest/Core/Command/RunPluginCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override FuncResult Start()

if (executorsCount == 0)
{
MessageBox.Show($"未找到名为{_executorName}的执行器");
MessageBox.Show($"未找到名为{_executorName} 的执行器");
}

return new FuncResult(executorsCount > 0);
Expand Down
2 changes: 1 addition & 1 deletion MSAddinTest/Core/Executor/ExecutorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ExecutorBase(Type type)
/// <summary>
/// 通过输入字符串匹配当前执行器
/// </summary>
/// <param name="inputStr"></param>
/// <param name="inputStr">用户输入的字符串</param>
/// <param name="name"></param>
/// <param name="args"></param>
/// <returns></returns>
Expand Down
2 changes: 1 addition & 1 deletion MSAddinTest/Core/Loader/PluginAssemblyLoader_Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public FuncResult Execute(string nameWithParams)
{
// 使用正则表达式将多个空格转换成一个空格
nameWithParams = System.Text.RegularExpressions.Regex.Replace(nameWithParams, @"\s+", " ");
var nameTemp = nameWithParams.Trim().ToLower();
var nameTemp = nameWithParams.Trim();
// 对名称进行匹配
// 如果是 keyin ,通过匹配前缀是否为 keyin 来确定
// 名称不区分大小写
Expand Down

0 comments on commit be041ae

Please sign in to comment.