Projektnummern: keine doppelten, Buchstabe A/P/G/I nach Status, Aufräumen (0.40.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-26 09:10:25 +00:00
parent 860de6a025
commit c0dd91718e
14 changed files with 232 additions and 16 deletions

View File

@@ -381,7 +381,7 @@ export function naechsteInternNummer(vorhanden: string[], jahr: number): string
const jj = String(jahr % 100).padStart(2, "0");
let max = 0;
for (const n of vorhanden) {
const m = /^I-(\d{2})-(\d{1,4})/.exec(n.trim());
const m = /^I-?(\d{2})-(\d{1,4})/i.exec(n.trim());
if (m && m[1] === jj) max = Math.max(max, Number(m[2]));
}
return `I-${jj}-${String(max + 1).padStart(3, "0")}`;
@@ -392,7 +392,7 @@ export function naechsteNummer(vorhanden: string[], jahr: number): string {
const jj = String(jahr % 100).padStart(2, "0");
let max = 0;
for (const n of vorhanden) {
const m = /^[AP]-(\d{2})-(\d{1,4})/.exec(n.trim());
const m = /^[APG]-?(\d{2})-(\d{1,4})/i.exec(n.trim());
if (m && m[1] === jj) max = Math.max(max, Number(m[2]));
}
return `A-${jj}-${String(max + 1).padStart(3, "0")}`;