mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-10 06:07:41 -06:00
remove erroneous negation operator from pattern
This commit is contained in:
2
.github/workflows/checklist.yaml
vendored
2
.github/workflows/checklist.yaml
vendored
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user