Compare commits
No commits in common. "4910f8650f42021874c8a91ac8bc187bf8d87a87" and "c7fac575e4ce3c159ada827aa976ae481661e45d" have entirely different histories.
4910f8650f
...
c7fac575e4
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.102.3",
|
||||
"version": "1.102.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue