diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5e404df..97e819d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.1.2" + ".": "6.1.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 91acbdb..0ae8933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [6.1.3](https://github.com/npm/hosted-git-info/compare/v6.1.2...v6.1.3) (2024-11-21) +### Bug Fixes +* [`7124552`](https://github.com/npm/hosted-git-info/commit/712455236f29e1be13f405cb67ce4b3a9c240e0c) [#281](https://github.com/npm/hosted-git-info/pull/281) even better regex for host fragment (#281) (@wraithgar) + ## [6.1.2](https://github.com/npm/hosted-git-info/compare/v6.1.1...v6.1.2) (2024-11-21) ### Bug Fixes * [`09061c0`](https://github.com/npm/hosted-git-info/commit/09061c0d8304a27aa356ab91421321b34a4f0bc1) [#276](https://github.com/npm/hosted-git-info/pull/276) break up greedy host fragment parsing regex (#276) (@wraithgar) diff --git a/lib/hosts.js b/lib/hosts.js index d610993..463a5f9 100644 --- a/lib/hosts.js +++ b/lib/hosts.js @@ -6,7 +6,7 @@ const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : '' const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : '' const formatHashFragment = (f) => f.toLowerCase() .replace(/^\W+/g, '') // strip leading non-characters - .replace(/\W+$/g, '') // strip trailing non-characters + .replace(/(?