Fixed whitespace bug

This commit is contained in:
2022-02-17 21:35:07 +00:00
parent 7791f4f5ba
commit 9f2f134fe6

View File

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