diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-10-16 02:22:53 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-10-16 02:22:53 +0200 |
| commit | c75e4f0b5fc83548e337af6c533036baec8c85c9 (patch) | |
| tree | 71580d75dfb378951ace4a9dd620f32a0ec42cbb /StoneIsland/platforms/ios/www/js/vendor/util.js | |
| parent | 335e61243d45c4c2eb5d030a8ee5f85c2ddf35f3 (diff) | |
update
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/vendor/util.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/vendor/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/vendor/util.js b/StoneIsland/platforms/ios/www/js/vendor/util.js index 27bdf008..c44dda79 100755 --- a/StoneIsland/platforms/ios/www/js/vendor/util.js +++ b/StoneIsland/platforms/ios/www/js/vendor/util.js @@ -25,7 +25,7 @@ function hex_string (rgb) { return "#" + rgb.map(Math.round).map(function(n){ va function parse_rgba_string (s) { return s.match(/(\d+)/g).slice(0,3) } function title_case (str) { - return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); + return (str || "").replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); } function pluralize (n,s,ss) { return n + " " + s + ( n == 1 ? "" : (ss || "s") ) } function as_cash(n){ |
