Fixed whitespace bug

This commit is contained in:
2022-02-17 21:31:14 +00:00
parent f1cf836828
commit 7ba5ed91d1

View File

@@ -1,7 +1,7 @@
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/polySubstitution/Affine.java
//Mattrixwv
// Created: 01-26-22
//Modified: 01-26-22
//Modified: 02-17-22
package com.mattrixwv.CipherStreamJava.monoSubstitution;
@@ -54,7 +54,7 @@ public class Affine{
inputString = inputString.toLowerCase();
}
if(!preserveWhitespace){
inputString = inputString.replaceAll("\\s+", "");
inputString = inputString.replaceAll("\\s", "");
}
if(!preserveSymbols){
inputString = inputString.replaceAll("[^a-zA-Z\\s]", "");