Fixed whitespace bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Playfair.java
|
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/polySubstitution/Playfair.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-30-21
|
// Created: 07-30-21
|
||||||
//Modified: 01-16-22
|
//Modified: 02-17-22
|
||||||
package com.mattrixwv.CipherStreamJava.polySubstitution;
|
package com.mattrixwv.CipherStreamJava.polySubstitution;
|
||||||
|
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ public class Playfair{
|
|||||||
inputString = inputString.toUpperCase();
|
inputString = inputString.toUpperCase();
|
||||||
}
|
}
|
||||||
if(!preserveWhitespace){
|
if(!preserveWhitespace){
|
||||||
inputString = inputString.replaceAll("\\s+", "");
|
inputString = inputString.replaceAll("\\s", "");
|
||||||
}
|
}
|
||||||
if(!preserveSymbols){
|
if(!preserveSymbols){
|
||||||
inputString = inputString.replaceAll("[^a-zA-Z\\s]", "");
|
inputString = inputString.replaceAll("[^a-zA-Z\\s]", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user