From f5cf87c25339bcb5fb03f74d139b538e65e488ba Mon Sep 17 00:00:00 2001 From: flier268 Date: Fri, 11 Jan 2019 16:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=B2=92=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=A8=8B=E5=BC=8F=E7=A2=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConvertZZ/App.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConvertZZ/App.xaml.cs b/ConvertZZ/App.xaml.cs index bac853b..792261a 100644 --- a/ConvertZZ/App.xaml.cs +++ b/ConvertZZ/App.xaml.cs @@ -8,6 +8,7 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; + namespace ConvertZZ { /// @@ -42,7 +43,7 @@ private void Application_Startup(object sender, StartupEventArgs e) bool EncodingSetted = false; int ToChinese = 0; string path1 = null, path2 = null; - Regex Regex_path1 = null, Regex_path2 = null; + Regex Regex_path1 = null; int VocabularyCorrection = -1; for (int i = 0; i < e.Args.Length; i++) { @@ -110,7 +111,6 @@ private void Application_Startup(object sender, StartupEventArgs e) else { path2 = e.Args[i]; - Regex_path2 = new Regex(path2.Replace("*", "(.*?)") + "$"); } break; }