Security update to Drupal 8.4.6
[yaffs-website] / node_modules / underscore.string / titleize.js
1 var makeString = require('./helper/makeString');
2
3 module.exports = function titleize(str) {
4   return makeString(str).toLowerCase().replace(/(?:^|\s|-)\S/g, function(c) {
5     return c.toUpperCase();
6   });
7 };