1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/lib/remove-fpt-from-path.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

10 lines
471 B
JavaScript

import slash from 'slash'
import nonEnterpriseDefaultVersion from './non-enterprise-default-version.js'
// This is a convenience function to remove free-pro-team@latest from all
// **user-facing** aspects of the site (particularly URLs) while continuing to support
// free-pro-team@latest as a version both in the codebase and in content/data files.
export default function removeFPTFromPath(path) {
return slash(path.replace(`/${nonEnterpriseDefaultVersion}`, ''))
}