mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Fix linting errors
This commit is contained in:
parent
b156fc9929
commit
9538320928
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue