remove erroneous negation operator from pattern

This commit is contained in:
2024-11-09 13:46:58 -06:00
parent be3c94b1a9
commit 4bc0421b74

View File

@@ -24,7 +24,7 @@ jobs:
for (const line of lines) {
if (line.startsWith('## ')) {
// Expected format: '## [X.Y.Z] - YYYY-MM-DD'
const pattern = !/^\d+\.\d+\.\d+ - \d{4}-\d{2}-\d{2}$/;
const pattern = /^\d+\.\d+\.\d+ - \d{4}-\d{2}-\d{2}$/;
if (pattern.test(line)) {
throw new Error(`Invalid version/date format: ${line}`);
}