Sha256: 0a77e26ba94cd9eb0de43fb66ec4a77b1e5e7f725de77b13ec11dc74102fab46
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
(function(){ 'use strict'; angular.module('herald.filters', []) .filter('capitalize', function() { return function(input) { var text; if (input === null || input === undefined) { text = ''; } else { text = input.toString(); } var first = text.substring(0, 1); var rest = text.substring(1); return first.toUpperCase() + rest; }; }); })();
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-herald-0.8.1 | lib/puppet-herald/public/components/filters/filters.js |
puppet-herald-0.8.0 | lib/puppet-herald/public/components/filters/filters.js |