Compare commits

..

No commits in common. "4910f8650f42021874c8a91ac8bc187bf8d87a87" and "c7fac575e4ce3c159ada827aa976ae481661e45d" have entirely different histories.

3 changed files with 4 additions and 6 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.102.3",
"version": "1.102.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.102.3",
"version": "1.102.2",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

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