MCPcopy Create free account
hub / github.com/github/docs / previewAnchor

Function previewAnchor

src/graphql/scripts/build-changelog.js:175–180  ·  view source on GitHub ↗
(previewTitle)

Source from the content-addressed store, hash-verified

173 * @return {string}
174 */
175export function previewAnchor(previewTitle) {
176 return previewTitle
177 .toLowerCase()
178 .replace(/ /g, '-')
179 .replace(/[^\w-]/g, '')
180}
181
182/**
183 * Turn changes from graphql-inspector into messages for the HTML changelog.

Callers 2

createChangelogEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected