We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5753a3 commit 7281cf4Copy full SHA for 7281cf4
Program.cs
@@ -101,7 +101,7 @@ static string GetFilePath(string[] args)
101
do
102
{
103
Console.Write("请拖入HTML文件或输入路径:");
104
- filePath = Console.ReadLine()?.Trim('"') ?? ""; // 读取并去除可能存在的引号
+ filePath = Console.ReadLine()?.Trim().Trim('"') ?? ""; // 先用 Trim() 移除所有前后空白,再用 Trim('"') 移除前后可能存在的引号
105
106
if (string.IsNullOrWhiteSpace(filePath))
107
0 commit comments