Fixed release sites for profile scraping.

This commit is contained in:
2020-03-11 03:01:37 +01:00
parent 9c8d914b75
commit 0d0acb6f3c
6 changed files with 41 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
'use strict';
function capitalize(string, trim = true) {
if (!string) {
return '';
}
const capitalized = string
.split(/\s/)
.map(component => `${component.charAt(0).toUpperCase()}${component.slice(1)}`)