|
@@ -1,4 +1,5 @@
|
|
|
using System;
|
|
|
+using System.Text.RegularExpressions;
|
|
|
using System.Windows;
|
|
|
using System.Windows.Controls;
|
|
|
using System.Windows.Input;
|
|
@@ -92,7 +93,9 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(SearchKeyWord) == false)
|
|
|
{
|
|
|
- SearchEvent?.Invoke(this, SearchKeyWord);
|
|
|
+ Regex regex = new Regex(@"\s+");
|
|
|
+ string result = regex.Replace(SearchKeyWord, " ");
|
|
|
+ SearchEvent?.Invoke(this, result);
|
|
|
}
|
|
|
}
|
|
|
|