@alleyinteractive/changelog-extractor 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -27342,8 +27342,9 @@ function parseChangelog(changelogContent, version = null) {
27342
27342
  let currentSectionContent = [];
27343
27343
  let generalContent = []; // Content without section headers
27344
27344
 
27345
- // Regex to match version headers: ## v1.14.0 or ## v1.14.0 - 2024-04-29
27346
- const versionRegex = /^##\s+v?(\d+\.\d+\.\d+(?:-[^\s]+)?)\s*(?:-\s*(.*))?$/;
27345
+ // Regex to match version headers: ## v1.14.0, ## [1.14.0] - 2024-04-29, or ## 2024-04-29
27346
+ const versionRegex =
27347
+ /^##\s+\[?v?(\d+\.\d+\.\d+(?:-[^\s\]]+)?|\d{4}-\d{2}-\d{2})\]?\s*(?:-\s*(.*))?$/;
27347
27348
  // Regex to match section headers: ### Added, ### Changed, etc.
27348
27349
  const sectionRegex = /^###\s+(.+)$/;
27349
27350