Fixed more sonarqube findings

This commit is contained in:
2022-07-04 01:19:59 -04:00
parent b4817e8bb3
commit e9c8397b86
2 changed files with 15 additions and 42 deletions

View File

@@ -135,7 +135,7 @@ public class PolybiusSquare{
return cleanString;
}
protected String getPreparedInputStringDecoding(){
return inputString.replaceAll("[^0-9]", "");
return inputString.replaceAll("\\D", "");
}
//Strips invalid characters from the keyword and creates the grid
protected void setKeyword(String keyword){