Prep for ts-node (#30587)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user