standard-version
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -5,2 +5,11 @@ # Change Log | ||
## [5.0.1](https://github.com/conventional-changelog/standard-version/compare/v5.0.0...v5.0.1) (2019-02-28) | ||
### Bug Fixes | ||
* make pattern for finding CHANGELOG sections work for non anchors ([#292](https://github.com/conventional-changelog/standard-version/issues/292)) ([b684c78](https://github.com/conventional-changelog/standard-version/commit/b684c78)) | ||
# [5.0.0](https://github.com/conventional-changelog/standard-version/compare/v4.4.0...v5.0.0) (2019-02-14) | ||
@@ -7,0 +16,0 @@ |
@@ -26,4 +26,5 @@ const accessSync = require('fs-access').sync | ||
// find the position of the last release and remove header: | ||
if (oldContent.indexOf('<a name=') !== -1) { | ||
oldContent = oldContent.substring(oldContent.indexOf('<a name=')) | ||
const changelogSectionRegExp = /<a name=|##? \[?[0-9]+\.[0-9]+\.[0-9]+\]?/ | ||
if (oldContent.search(changelogSectionRegExp) !== -1) { | ||
oldContent = oldContent.substring(oldContent.search(changelogSectionRegExp)) | ||
} | ||
@@ -30,0 +31,0 @@ var content = '' |
{ | ||
"name": "standard-version", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "replacement for `npm version` with automatic CHANGELOG generation", | ||
@@ -5,0 +5,0 @@ "bin": "bin/cli.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82008
1402