keep-a-changelog
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -8,2 +8,9 @@ # Changelog | ||
## [0.5.1] - 2018-05-12 | ||
### Fixed | ||
- Issues autodetection problems with texts like `#3.4` | ||
- Test execution was commented | ||
## [0.5.0] - 2018-05-09 | ||
@@ -74,2 +81,3 @@ | ||
[0.5.1]: https://github.com/oscarotero/keep-a-changelog/compare/v0.5.0...v0.5.1 | ||
[0.5.0]: https://github.com/oscarotero/keep-a-changelog/compare/v0.4.0...v0.5.0 | ||
@@ -76,0 +84,0 @@ [0.4.0]: https://github.com/oscarotero/keep-a-changelog/compare/v0.3.1...v0.4.0 |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/oscarotero/keep-a-changelog#readme", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "bin": { |
@@ -33,3 +33,3 @@ class Change { | ||
}) | ||
.replace(/#(\d+)([^\w\]]|$)/g, (matches, index, end) => { | ||
.replace(/#(\d+)([^\w\]\.]|[^\d\w]?$)/g, (matches, index, end) => { | ||
if (!issues.includes(index)) { | ||
@@ -36,0 +36,0 @@ issues.push(index); |
@@ -130,8 +130,10 @@ const Semver = require('semver'); | ||
if (!this.version) { | ||
return `[UNRELEASED]: ${changelog.url}/compare/v${next.version}...HEAD`; | ||
return `[UNRELEASED]: ${changelog.url}/compare/v${ | ||
next.version | ||
}...HEAD`; | ||
} | ||
return `[${this | ||
.version}]: ${changelog.url}/compare/v${next.version}...v${this | ||
.version}`; | ||
return `[${this.version}]: ${changelog.url}/compare/v${ | ||
next.version | ||
}...v${this.version}`; | ||
} | ||
@@ -138,0 +140,0 @@ |
@@ -16,3 +16,5 @@ # Changelog - demo | ||
- [#3] Test with issue link in the beginning of the text | ||
- Test with issue dot [#4]. | ||
- Test with no issue link #123b | ||
- Test with `package#2.0` | ||
@@ -180,2 +182,3 @@ ## [1.0.0] - 2017-06-20 | ||
[#3]: https://github.com/olivierlacan/keep-a-changelog/issues/3 | ||
[#4]: https://github.com/olivierlacan/keep-a-changelog/issues/4 | ||
@@ -182,0 +185,0 @@ [UNRELEASED]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD |
@@ -14,3 +14,5 @@ # Changelog - demo | ||
- #3 Test with issue link in the beginning of the text | ||
- Test with issue dot #4. | ||
- Test with no issue link #123b | ||
- Test with `package#2.0` | ||
@@ -17,0 +19,0 @@ ## [1.0.0] - 2017-06-20 |
@@ -13,4 +13,4 @@ const fs = require('fs'); | ||
it('should match the generated changelog with the expected', function() { | ||
//assert.equal(changelog.toString().trim(), expected.trim()); | ||
assert.equal(changelog.toString().trim(), expected.trim()); | ||
}); | ||
}); |
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
446
31570
13