Skip to content

Commit

Permalink
Fix regions test (#8194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 authored Sep 9, 2024
1 parent 687e35b commit 55383f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs").promises;
const core = require("@actions/core");

const url = new URL(
"https://raw.githubusercontent.com/stefangabos/world_countries/master/data/countries/en/world.json",
"https://raw.githubusercontent.com/stefangabos/world_countries/master/data/countries/en/world.json"
);

async function main() {
Expand All @@ -26,7 +26,7 @@ async function main() {
const { regions } = entry;

for (const region of regions || []) {
if (!codes.includes(region)) {
if (!codes.includes(region.replace("-", ""))) {
core.error(`${region} is not a valid region code`, { file });
errors = true;
}
Expand Down

0 comments on commit 55383f8

Please sign in to comment.