chore(deps): upgrade eslint, prettier & related packages
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
0a53a1d7f0
commit
6c91f81b0e
@@ -16,12 +16,7 @@ function prototyper(str) {
|
||||
.map(str => {
|
||||
if (prototypeRE.test(str)) {
|
||||
if (str.length > 9) {
|
||||
return prototyper(
|
||||
str
|
||||
.trim()
|
||||
.split('prototype')
|
||||
.join('-prototype-')
|
||||
);
|
||||
return prototyper(str.trim().split('prototype').join('-prototype-'));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
@@ -39,12 +34,7 @@ function prototyper(str) {
|
||||
return `${titleify(first)}.prototype.${finalSecond}`;
|
||||
}
|
||||
if (noProto.length === 1) {
|
||||
return prototyper(
|
||||
noProto[0]
|
||||
.toLowerCase()
|
||||
.split('.')
|
||||
.join('-')
|
||||
);
|
||||
return prototyper(noProto[0].toLowerCase().split('.').join('-'));
|
||||
}
|
||||
return titleify(str, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user