Fixed whitespace bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/Atbash.java
|
//CipherStreamJava/src/main/java/com/mattrixwv/CipherStreamJava/monoSubstitution/Atbash.java
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 07-25-21
|
// Created: 07-25-21
|
||||||
//Modified: 01-16-22
|
//Modified: 02-17-22
|
||||||
package com.mattrixwv.CipherStreamJava.monoSubstitution;
|
package com.mattrixwv.CipherStreamJava.monoSubstitution;
|
||||||
|
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ public class Atbash{
|
|||||||
}
|
}
|
||||||
if(!preserveWhitespace){
|
if(!preserveWhitespace){
|
||||||
//Remove all characters except capital letters
|
//Remove all characters except capital letters
|
||||||
inputString = inputString.replaceAll("\\s+", "");
|
inputString = inputString.replaceAll("\\s", "");
|
||||||
}
|
}
|
||||||
if(!preserveSymbols){
|
if(!preserveSymbols){
|
||||||
//Remove all non-alpha numeric and whitespace symbols
|
//Remove all non-alpha numeric and whitespace symbols
|
||||||
|
|||||||
Reference in New Issue
Block a user