Fixed whitespace bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/polySubstitution/Affine.java
|
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/polySubstitution/Affine.java
|
||||||
//Mattrixwv
|
//Mattrixwv
|
||||||
// Created: 01-26-22
|
// Created: 01-26-22
|
||||||
//Modified: 01-26-22
|
//Modified: 02-17-22
|
||||||
package com.mattrixwv.CipherStreamJava.monoSubstitution;
|
package com.mattrixwv.CipherStreamJava.monoSubstitution;
|
||||||
|
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ public class Affine{
|
|||||||
inputString = inputString.toLowerCase();
|
inputString = inputString.toLowerCase();
|
||||||
}
|
}
|
||||||
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