Sign in
apache
/
cordova-js
/
refs/heads/cb-4.2.3-with-node-modules-for-coho-only
/
.
/
node_modules
/
underscore.string
/
humanize.js
blob: 8f82d072611a7a553837c0bfa85cb30eb286dc6b [
file
] [
log
] [
blame
]
var
capitalize
=
require
(
'./capitalize'
);
var
underscored
=
require
(
'./underscored'
);
var
trim
=
require
(
'./trim'
);
module
.
exports
=
function
humanize
(
str
)
{
return
capitalize
(
trim
(
underscored
(
str
).
replace
(
/_id$/
,
''
).
replace
(
/_/
g
,
' '
)));
};