Fix linting errors
This commit is contained in:
parent
9538320928
commit
bd9e0142bc
@ -36,7 +36,7 @@ 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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user