浏览代码

Trim include/exclude apps when check against current app

Scott Brogden 7 年之前
父节点
当前提交
aff976dbdb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ClipboardViewer.cpp

+ 2 - 2
ClipboardViewer.cpp

@@ -328,7 +328,7 @@ bool CClipboardViewer::ValidActiveWnd()
 	{
 		if(line != "")
 		{
-			if(CWildCardMatch::WildMatch(line, m_activeWindow, ""))
+			if(CWildCardMatch::WildMatch(line.Trim(), m_activeWindow, ""))
 			{
 				Log(StrF(_T("Inlclude app names Found Match %s - %s"), line, m_activeWindow));
 
@@ -352,7 +352,7 @@ bool CClipboardViewer::ValidActiveWnd()
 			{
 				if(line2 != "")
 				{
-					if(CWildCardMatch::WildMatch(line2, m_activeWindow, ""))
+					if(CWildCardMatch::WildMatch(line2.Trim(), m_activeWindow, ""))
 					{
 						Log(StrF(_T("Exclude app names Found Match %s - %s - NOT SAVING COPY"), line2, m_activeWindow));