1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Prep for ts-node (#30587)

This commit is contained in:
Kevin Heis
2022-09-08 08:45:13 -07:00
committed by GitHub
parent 37412ea5b0
commit 7523a7c460
14 changed files with 20 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ export function getNewVersionFromOldVersion(oldVersion) {
// Given an old path like /enterprise/2.21/user/github/category/article,
// return an old version like 2.21.
export function getOldVersionFromOldPath(oldPath, languageCode) {
export function getOldVersionFromOldPath(oldPath) {
// We should never be calling this function on a path that starts with a new version,
// so we can assume the path either uses the old /enterprise format or it's dotcom.
if (!patterns.enterprise.test(oldPath)) return 'dotcom'