Skip to content

Commit 1f93fe2

Browse files
authored
denormalize archived-redirects-from-213-to-217.json by language (github#24996)
* denormalize archived-redirects-from-213-to-217.json by language * refactor again * oops
1 parent 918a095 commit 1f93fe2

File tree

3 files changed

+8503
-28241
lines changed

3 files changed

+8503
-28241
lines changed

lib/languages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if (process.env.ENABLED_LANGUAGES) {
5353

5454
export const languageKeys = Object.keys(languages)
5555

56-
const languagePrefixPathRegex = new RegExp(`^/(${languageKeys.join('|')})/`)
56+
export const languagePrefixPathRegex = new RegExp(`^/(${languageKeys.join('|')})/`)
5757

5858
export function pathLanguagePrefixed(path) {
5959
return languagePrefixPathRegex.test(path)

0 commit comments

Comments
 (0)