projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
node_modules
/
underscore.string
/
humanize.js
1
var capitalize = require('./capitalize');
2
var underscored = require('./underscored');
3
var trim = require('./trim');
4
5
module.exports = function humanize(str) {
6
return capitalize(trim(underscored(str).replace(/_id$/, '').replace(/_/g, ' ')));
7
};