Skip to content

Commit dd0800b

Browse files
authored
Update bin/validate-redirects.ts
1 parent fc02c96 commit dd0800b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/validate-redirects.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ async function main() {
2727
numUrlsWithFragment++;
2828
}
2929

30-
if (!from.endsWith("/") && !from.endsWith("*") && !from.endsWith(".xml")) {
30+
31+
if (!validEndings.some(ending => from.endsWith(ending))) {
3132
console.log(`✘ Found unslashed source URLs:\n ${from}`);
3233
numNonSlashedRedirects++;
3334
}

0 commit comments

Comments
 (0)