MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / extractSortKey

Function extractSortKey

scripts/generate-changelog.ts:263–270  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

261}
262
263function extractSortKey(line: string): string {
264 return line
265 .trim()
266 .replace(/^- /, '')
267 .replace(/\*\*/g, '')
268 .replace(/\s*\(\[#\d+\].*?\)\s*$/, '')
269 .toLowerCase();
270}
271
272function isQuoteLine(line: string): boolean {
273 return line.includes('—') && (line.includes('Wayne Gretzky') || line.includes('Michael Scott'));

Callers 1

createEntryFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected