Fixed more problems with issue #98

This commit is contained in:
Michael J. Seiferling
2018-02-14 10:23:18 -06:00
parent 1ab0e77918
commit 978242d0dd
3 changed files with 22 additions and 24 deletions
-18
View File
@@ -258,24 +258,6 @@ Public Class mgrCommon
Return dFileSize
End Function
Public Shared Function IsMatch(ByRef oGame As clsGame, ByRef sProcessCheck As String) As Boolean
If oGame.IsRegEx Then
Try
If Regex.IsMatch(sProcessCheck, oGame.ProcessName) Then
Return True
End If
Catch
'Ignore malformed regular expressions that may have passed validation
End Try
Else
If oGame.ProcessName = sProcessCheck Then
Return True
End If
End If
Return False
End Function
Public Shared Function WildcardToRegex(ByVal sPattern As String) As String
Dim sRegEx As String
sRegEx = sPattern.Replace("*", ".*")