@citygross/components 0.8.55 → 0.8.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,6 +61,9 @@ var capitalizeFirstLetter = function (string) {
|
|
|
61
61
|
return string.toUpperCase();
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
+
var capitalizedAllWords = function (string) {
|
|
65
|
+
return string.replace(/(^\w|\s\w)/g, function (match) { return match.toUpperCase(); });
|
|
66
|
+
};
|
|
64
67
|
|
|
65
68
|
var languageCodeToCountryMap = {
|
|
66
69
|
AD: 'Andorra',
|
|
@@ -18832,6 +18835,7 @@ function getDateInfo(dateStr) {
|
|
|
18832
18835
|
}
|
|
18833
18836
|
|
|
18834
18837
|
build.capitalizeFirstLetter = capitalizeFirstLetter;
|
|
18838
|
+
build.capitalizedAllWords = capitalizedAllWords;
|
|
18835
18839
|
build.comparisonTypes = comparisonTypes;
|
|
18836
18840
|
build.emailRegex = emailRegex;
|
|
18837
18841
|
build.formatDateToLocale = formatDateToLocale;
|