From 02cf394bcdbc9224b66d31f44ddd4d81f0b03007 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 1 Feb 2021 14:42:00 +0000 Subject: [PATCH] ROT13 tweaks --- src/core/operations/ROT13.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/ROT13.mjs b/src/core/operations/ROT13.mjs index 75be2f2b..1d059565 100644 --- a/src/core/operations/ROT13.mjs +++ b/src/core/operations/ROT13.mjs @@ -36,9 +36,9 @@ class ROT13 extends Operation { value: true }, { - name: "Rotate Numbers", + name: "Rotate numbers", type: "boolean", - value: true + value: false }, { name: "Amount", @@ -74,7 +74,7 @@ class ROT13 extends Operation { } else if (rot13Lowercase && chr >= 97 && chr <= 122) { // Lower case chr = (chr - 97 + amount) % 26; output[i] = chr + 97; - } else if (rotNumbers && chr >= 48 && chr <= 57) { + } else if (rotNumbers && chr >= 48 && chr <= 57) { // Numbers chr = (chr - 48 + amount) % 10; output[i] = chr + 48; }