Passing matching site to profile scrapers. Allowing scrapers to pass avatar metadata. Added scraper and copyright properties to media. Auto-adding copyright from site or scraper to avatars. Separated Porn Pros from Whale Member.
This commit is contained in:
10
src/utils/capitalize.js
Normal file
10
src/utils/capitalize.js
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
function capitalize(string) {
|
||||
return string
|
||||
.split(/\s/)
|
||||
.map(component => `${component.charAt(0).toUpperCase()}${component.slice(1)}`)
|
||||
.join(' ');
|
||||
}
|
||||
|
||||
module.exports = capitalize;
|
||||
Reference in New Issue
Block a user