Fix linting errors
This commit is contained in:
parent
b156fc9929
commit
9538320928
@ -36,10 +36,9 @@ class AlternatingCaps extends Operation {
|
|||||||
let previousCaps = true;
|
let previousCaps = true;
|
||||||
for (let i = 0; i < input.length; i++) {
|
for (let i = 0; i < input.length; i++) {
|
||||||
// Check if the element is a letter
|
// Check if the element is a letter
|
||||||
if (!RegExp(/^\p{L}/,'u').test(input[i])) {
|
if (!RegExp(/^\p{L}/, 'u').test(input[i])) {
|
||||||
output += input[i];
|
output += input[i];
|
||||||
}
|
} else if (previousCaps) {
|
||||||
else if (previousCaps) {
|
|
||||||
output += input[i].toLowerCase();
|
output += input[i].toLowerCase();
|
||||||
previousCaps = false;
|
previousCaps = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user