Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

remove-fpt-from-path.js 481 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. const slash = require('slash')
  2. const nonEnterpriseDefaultVersion = require('./non-enterprise-default-version')
  3. // This is a convenience function to remove free-pro-team@latest from all
  4. // **user-facing** aspects of the site (particularly URLs) while continuing to support
  5. // free-pro-team@latest as a version both in the codebase and in content/data files.
  6. module.exports = function removeFPTFromPath (path) {
  7. return slash(path.replace(`/${nonEnterpriseDefaultVersion}`, ''))
  8. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...