fix: verification of answers for history

This commit is contained in:
Bjarke Sporring
2026-01-15 12:01:07 +01:00
parent b2b8a2cfff
commit 9e03a9624a

View File

@@ -42,7 +42,7 @@ if (-not (Test-Path "answers.md")) {
$answersLower = $answers.ToLower()
# Check 1: Contains "5" or "five" for commit count
if ($answersLower -match "5|five") {
if ($answersLower -match "5|five|fem") {
Write-Host "[PASS] Correct commit count found" -ForegroundColor Green
} else {
Write-Host "[FAIL] Commit count not found or incorrect" -ForegroundColor Red
@@ -76,7 +76,7 @@ if (-not (Test-Path "answers.md")) {
}
# Check 4: Contains "config" keyword for staged file
if ($answersLower -match "config") {
if ($answersLower -match "config.py") {
Write-Host "[PASS] Staged file identified" -ForegroundColor Green
} else {
Write-Host "[FAIL] Staged file not identified" -ForegroundColor Red