Fixed whitespace bug

This commit is contained in:
2022-02-17 21:37:20 +00:00
parent 6afe445aea
commit ef8beb4df1

View File

@@ -1,7 +1,7 @@
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/PolybiusSquare.java
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/polySubstitution/PolybiusSquare.java
//Mattrixwv
// Created: 01-04-22
//Modified: 01-09-22
//Modified: 02-17-22
package com.mattrixwv.CipherStreamJava.polySubstitution;
@@ -65,7 +65,7 @@ public class PolybiusSquare{
//Remove any whitespace if selected
if(!preserveWhitespace){
inputString = inputString.replaceAll("\\s+", "");
inputString = inputString.replaceAll("\\s", "");
}
//Remove any symbols if selected
@@ -113,7 +113,7 @@ public class PolybiusSquare{
//Remove any whitespace if selected
if(!preserveWhitespace){
inputString = inputString.replaceAll("\\s+", "");
inputString = inputString.replaceAll("\\s", "");
}
//Remove any symbols if selected