Skip to content

Commit f67b3f9

Browse files
committed
Fix a bug to filter bad or wrong solutions
1 parent 9ecf1dd commit f67b3f9

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

GitAutoUpdateGUI/FormMain.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GitAutoUpdateGUI/FormMain.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ private void SetLanguage(string myLanguage)
434434
checkBoxOnlyGenerateScriptFile.Text = _languageDicoEn["Generate only the script file"];
435435
buttonCheckUncheckAll.Text = _languageDicoEn["Toggle items"];
436436
buttonClearLogTextBox.Text = _languageDicoEn["Clear log"];
437-
checkBoxUnlistVSSolution.Text = _languageDicoEn["Unlist Visual Studio Solution having the terms separated with a comma"];
437+
checkBoxUnlistVSSolution.Text = _languageDicoEn["Unlist Visual Studio Solution having the following terms separated with a comma"];
438438
checkBoxCaseSensitive.Text = _languageDicoEn["Case sensitive"];
439439
buttonClearAll.Text = _languageDicoEn["Uncheck all"];
440440
buttonCheckAll.Text = _languageDicoEn["Check all"];
@@ -479,7 +479,7 @@ private void SetLanguage(string myLanguage)
479479
checkBoxOnlyGenerateScriptFile.Text = _languageDicoFr["Generate only the script file"];
480480
buttonCheckUncheckAll.Text = _languageDicoFr["Toggle items"];
481481
buttonClearLogTextBox.Text = _languageDicoFr["Clear log"];
482-
checkBoxUnlistVSSolution.Text = _languageDicoFr["Unlist Visual Studio Solution having the terms separated with a comma"];
482+
checkBoxUnlistVSSolution.Text = _languageDicoFr["Unlist Visual Studio Solution having the following terms separated with a comma"];
483483
checkBoxCaseSensitive.Text = _languageDicoFr["Case sensitive"];
484484
buttonClearAll.Text = _languageDicoFr["Uncheck all"];
485485
buttonCheckAll.Text = _languageDicoFr["Check all"];
@@ -947,7 +947,9 @@ private static bool NotHavingWords(string source, IEnumerable<string> badWords,
947947
// if (badWords.Any(badWord => string.Compare(badWord.Trim(), source.Trim(), StringComparison.CurrentCultureIgnoreCase) == 0))
948948
foreach (string badWord in badWords)
949949
{
950-
if (string.Compare(badWord.Trim(), source.Trim(), StringComparison.CurrentCultureIgnoreCase) == 0)
950+
string tmpbadWord = badWord.Trim().ToLower();
951+
string tmpSource = source.Trim().ToLower();
952+
if (tmpSource.Contains(tmpbadWord))
951953
{
952954
result = false;
953955
break;

GitAutoUpdateGUI/Translations.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@
425425
<frenchValue>Processus terminé</frenchValue>
426426
</term>
427427
<term>
428-
<name>Unlist Visual Studio Solution having the terms separated with a comma</name>
429-
<englishValue>Unlist Visual Studio Solution having the terms separated with a comma</englishValue>
430-
<frenchValue>Supprimer les solutions Visual Studio ayant les mots séparés par une virgule</frenchValue>
428+
<name>Unlist Visual Studio Solution having the following terms separated with a comma</name>
429+
<englishValue>Unlist Visual Studio Solution having the following terms separated with a comma</englishValue>
430+
<frenchValue>Supprimer les solutions Visual Studio ayant les mots suivants séparés par une virgule</frenchValue>
431431
</term>
432432
<term>
433433
<name>Case sensitive</name>

0 commit comments

Comments
 (0)