MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / replaceAsteriskLists

Function replaceAsteriskLists

apps/site/scripts/release-post/index.mjs:161–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159const fetchChangelogBody = version => {
160 return fetchChangelog(version).then(section => {
161 const replaceAsteriskLists = str =>
162 str.replace(/^([ ]{0,4})(\* )/gm, '$1- ');
163
164 return new Promise(resolve =>
165 resolve(replaceAsteriskLists(section.trim()))

Callers 1

fetchChangelogBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected