From 8810592e6d42e7a34e774a445fe9914ea1abffb9 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Wed, 30 Jul 2025 08:10:29 +0200 Subject: [PATCH] Regex bei automatischer Profilauswahl und Ablegen von Dokumenten ist nun caseinsensitive - frmAdministration, frmIndex --- Global_Indexer/My Project/AssemblyInfo.vb | 6 +++--- Global_Indexer/frmAdministration.vb | 2 +- Global_Indexer/frmIndex.vb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Global_Indexer/My Project/AssemblyInfo.vb b/Global_Indexer/My Project/AssemblyInfo.vb index fd59bbe..f0f7f46 100644 --- a/Global_Indexer/My Project/AssemblyInfo.vb +++ b/Global_Indexer/My Project/AssemblyInfo.vb @@ -14,8 +14,8 @@ Imports System.Runtime.InteropServices - - + + @@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices ' übernehmen, indem Sie "*" eingeben: ' - + \ No newline at end of file diff --git a/Global_Indexer/frmAdministration.vb b/Global_Indexer/frmAdministration.vb index 73b81d4..2750ad7 100644 --- a/Global_Indexer/frmAdministration.vb +++ b/Global_Indexer/frmAdministration.vb @@ -1059,7 +1059,7 @@ Public Class frmAdministration Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click Try - If Regex.IsMatch(TextBox1.Text, TextBox5.Text) Then + If Regex.IsMatch(TextBox1.Text, TextBox5.Text, RegexOptions.IgnoreCase) Then MsgBox("The RegEx resulted in a proper match!", MsgBoxStyle.Information, "Perfect:") Else MsgBox("No Match- There might be an error in the RegEx!", MsgBoxStyle.Information, "Something wrong:") diff --git a/Global_Indexer/frmIndex.vb b/Global_Indexer/frmIndex.vb index 03f6df3..7c09477 100644 --- a/Global_Indexer/frmIndex.vb +++ b/Global_Indexer/frmIndex.vb @@ -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)