* Checks if content starts with "BREAKING CHANGE: " (case-insensitive, * ignoring markdown formatting and leading whitespace)
(content: string)
| 388 | * ignoring markdown formatting and leading whitespace) |
| 389 | */ |
| 390 | function 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 |
no test coverage detected
searching dependent graphs…