Fixed whitespace bug

This commit is contained in:
2022-02-17 21:38:13 +00:00
parent ef8beb4df1
commit e422f8fafe

View File

@@ -1,7 +1,7 @@
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/combination/ADFGX.java
//Mattrixwv
// Created: 01-25-22
//Modified: 01-25-22
//Modified: 02-17-22
package com.mattrixwv.CipherStreamJava.combination;
import com.mattrixwv.CipherStreamJava.exceptions.InvalidCharacterException;
@@ -44,7 +44,7 @@ public class ADFGX{
inputString = inputString.toUpperCase();
}
if(!preserveWhitespace){
inputString = inputString.replaceAll("\\s+", "");
inputString = inputString.replaceAll("\\s", "");
}
if(!preserveSymbols){
inputString = inputString.replaceAll("[^a-zA-Z\\s]", "");