Skip to content

Commit

Permalink
fix: regex check
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Apr 1, 2024
1 parent 09c455e commit 21a2263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/update-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function fetchTLDs() {

for await (const line of rl) {
if (lineNumber === 0) {
if (/^# Version \d{8}, Last Updated .+ UTC$/.test(line)) {
if (!/^# Version \d{10}, Last Updated .+ UTC$/.test(line)) {
throw new Error('Unexpected version line');
}
data.version = line;
Expand Down

0 comments on commit 21a2263

Please sign in to comment.