dev #46

Merged
admin merged 13 commits from dev into main 2026-07-17 14:00:13 +02:00
Showing only changes of commit f0e1ad39b0 - Show all commits

View File

@@ -66,8 +66,8 @@ function parseJugendTeamKey(teamKey) {
function sideMatchesJugendTeam({ isHarheimer, ageClass, teamNumber }, team) {
if (!isHarheimer) return false
const agePattern = new RegExp(`(?:jugend\\s*|j)${team.age}\\b`, 'i')
if (!agePattern.test(ageClass)) return false
const ageMatch = String(ageClass || '').match(/(?:jugend\s*|j)(\d{1,2})\b/i)
if (!ageMatch || ageMatch[1] !== team.age) return false
return !team.teamNumber || String(teamNumber || '').trim() === team.teamNumber
}