MCPcopy Index your code
hub / github.com/github/docs / updateLiquid

Function updateLiquid

script/content-migrations/update-versioning-in-files.js:63–68  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

61})
62
63function updateLiquid(content) {
64 return content
65 .replace(/page.version/g, 'currentVersion')
66 .replace(/["'](?:')?dotcom["'](?:')?/g, '"free-pro-team@latest"')
67 .replace(/["'](?:')?(2\.\d{2})["'](?:')?/g, '"enterprise-server@$1"')
68}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected