MCPcopy Index your code
hub / github.com/remix-run/react-router / hasBreakingChangePrefix

Function hasBreakingChangePrefix

scripts/changes/changes.ts:390–396  ·  view source on GitHub ↗

* Checks if content starts with "BREAKING CHANGE: " (case-insensitive, * ignoring markdown formatting and leading whitespace)

(content: string)

Source from the content-addressed store, hash-verified

388 * ignoring markdown formatting and leading whitespace)
389 */
390function hasBreakingChangePrefix(content: string): boolean {
391 return content
392 .trimStart()
393 .replace(/^[*_]+/, "")
394 .toLowerCase()
395 .startsWith("breaking change: ");
396}
397
398/**
399 * Formats a changelog entry from change file content

Callers 2

parsePackageChangesFunction · 0.85
generateBumpTypeSectionFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…