Regex bei automatischer Profilauswahl und Ablegen von Dokumenten ist nun caseinsensitive - frmAdministration, frmIndex

This commit is contained in:
OlgunR
2025-07-30 08:10:29 +02:00
parent cd3b2f1ae3
commit 8810592e6d
3 changed files with 5 additions and 5 deletions

View File

@@ -1841,7 +1841,7 @@ Public Class frmIndex
If oApplyRegex Then
For Each oRoW As DataRow In DTTBGI_REGEX_DOCTYPE.Rows
Dim oOnlyFilename = Path.GetFileName(CURRENT_WORKFILE)
If Regex.IsMatch(oOnlyFilename, oRoW.Item("Regex")) Then
If Regex.IsMatch(oOnlyFilename, oRoW.Item("Regex"), RegexOptions.IgnoreCase) Then
_Logger.Debug("There is a match on REGEX_DOCTYPE: [{0}]", oRoW.Item("DOCTYPE"))
_Logger.Debug("Regex: [{0}], FileName: [{1}]", oRoW.Item("Regex"), oOnlyFilename)