mirror of
https://github.com/Xevion/linkpulse.git
synced 2026-01-31 08:24:45 -06:00
remove erroneous negation operator from pattern
This commit is contained in:
Vendored
+1
-1
@@ -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