Added ignoreCase feature in Substitute operation.

This commit is contained in:
Samuele Facenda 2022-11-13 14:41:01 +01:00
parent 9c3ddca269
commit 1a9833132d
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Substitute extends Operation {
if (dict[char.toLowerCase()] !== undefined)
return dict[char.toLowerCase()].toUpperCase();
} else {
if(dict[char.toUpperCase()] !== undefined)
if (dict[char.toUpperCase()] !== undefined)
return dict[char.toUpperCase()].toLowerCase();
}