We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc02c96 commit dd0800bCopy full SHA for dd0800b
bin/validate-redirects.ts
@@ -27,7 +27,8 @@ async function main() {
27
numUrlsWithFragment++;
28
}
29
30
- if (!from.endsWith("/") && !from.endsWith("*") && !from.endsWith(".xml")) {
+
31
+ if (!validEndings.some(ending => from.endsWith(ending))) {
32
console.log(`✘ Found unslashed source URLs:\n ${from}`);
33
numNonSlashedRedirects++;
34
0 commit comments