@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.
@@ -68,6 +68,9 @@ var capitalizeFirstLetter = function (string) {
68
68
  return string.toUpperCase();
69
69
  }
70
70
  };
71
+ var capitalizedAllWords = function (string) {
72
+ return string.replace(/(^\w|\s\w)/g, function (match) { return match.toUpperCase(); });
73
+ };
71
74
 
72
75
  var languageCodeToCountryMap = {
73
76
  AD: 'Andorra',
@@ -18839,6 +18842,7 @@ function getDateInfo(dateStr) {
18839
18842
  }
18840
18843
 
18841
18844
  index.__exports.capitalizeFirstLetter = capitalizeFirstLetter;
18845
+ index.__exports.capitalizedAllWords = capitalizedAllWords;
18842
18846
  index.__exports.comparisonTypes = comparisonTypes;
18843
18847
  index.__exports.emailRegex = emailRegex;
18844
18848
  index.__exports.formatDateToLocale = formatDateToLocale;