uniformize
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -17,3 +17,3 @@ "use strict"; | ||
const text = toLowerCase ? this.toLowerCase() : this; | ||
return text.replace(/(^\p{L}{1})|(\s+\p{L}{1})/gu, (char) => char.toUpperCase()); | ||
return text.replace(/(^\p{L}{1})|(\s+\p{L}{1})|(-\p{L}{1})/gu, (char) => char.toUpperCase()); | ||
}; | ||
@@ -20,0 +20,0 @@ String.prototype.subText = function(query, strict) { |
@@ -7,3 +7,3 @@ { | ||
"type": "commonjs", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"repository": { | ||
@@ -10,0 +10,0 @@ "type": "git", |
@@ -17,3 +17,3 @@ String.prototype.removeAccents = function () { | ||
const text = toLowerCase ? this.toLowerCase() : this; | ||
return text.replace(/(^\p{L}{1})|(\s+\p{L}{1})/gu, (char: string) => char.toUpperCase()); | ||
return text.replace(/(^\p{L}{1})|(\s+\p{L}{1})|(-\p{L}{1})/gu, (char: string) => char.toUpperCase()); | ||
}; | ||
@@ -20,0 +20,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15908