Added ignoreCase feature in Substitute operation.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user