microsoft-capitalize
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.0.4](https://github.com/Kikobeats/microsoft-capitalize/compare/v1.0.3...v1.0.4) (2020-12-17) | ||
### Bug Fixes | ||
* avoid dot followed by number ([0c5775e](https://github.com/Kikobeats/microsoft-capitalize/commit/0c5775ebb8700e349e620d652811d05fdf338bab)) | ||
### [1.0.3](https://github.com/Kikobeats/microsoft-capitalize/compare/v1.0.2...v1.0.3) (2020-08-01) | ||
@@ -7,0 +14,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/microsoft-capitalize", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -35,2 +35,6 @@ # microsoft-capitalize | ||
// handling dot corner cases | ||
capitalize('autopilot 2.5') | ||
// => 'Autopilot 2.5' | ||
// passing exceptions | ||
@@ -37,0 +41,0 @@ capitalize('JSON+LD & oEmbed', ['oEmbed']) |
@@ -17,3 +17,3 @@ 'use strict' | ||
let title = str | ||
.split('.') | ||
.split(/\.(?![\d])/) | ||
.map(str => capitalize(str.trim())) | ||
@@ -20,0 +20,0 @@ .join('. ') |
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
8462
67