mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-14 16:12:06 -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) {
|
for (const line of lines) {
|
||||||
if (line.startsWith('## ')) {
|
if (line.startsWith('## ')) {
|
||||||
// Expected format: '## [X.Y.Z] - YYYY-MM-DD'
|
// 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)) {
|
if (pattern.test(line)) {
|
||||||
throw new Error(`Invalid version/date format: ${line}`);
|
throw new Error(`Invalid version/date format: ${line}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user