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
9538320928
commit
bd9e0142bc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue