Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Tad <[email protected]>
  • Loading branch information
SkewedZeppelin committed Dec 22, 2023
1 parent 1c29038 commit 47f1683
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void main(String[] args) {
if (databaseLocation.getName().contains(".hdb")) {//.hdb format: md5, size, name
while ((line = reader.readLine()) != null) {
if (line.length() > 0) {
String[] lineS = line.split(":");
String[] lineS = line.trim().split(":");
if (lineS[0].length() > 0) {
if (signaturesMD5.put(lineS[0])) {
amtSignaturesMD5++;
Expand All @@ -67,7 +67,7 @@ public static void main(String[] args) {
} else if (databaseLocation.getName().contains(".hsb")) {//.hsb format: sha256, size, name
while ((line = reader.readLine()) != null) {
if (line.length() > 0) {
String[] lineS = line.split(":");
String[] lineS = line.trim().split(":");
if (lineS[0].length() == 32) {
if (signaturesSHA1.put(lineS[0])) {
amtSignaturesSHA1++;
Expand All @@ -84,7 +84,7 @@ public static void main(String[] args) {
} else if (databaseLocation.getName().contains(".md5")) {//one signature per line
while ((line = reader.readLine()) != null) {
if (line.length() > 0) {
if (signaturesMD5.put(line)) {
if (signaturesMD5.put(line.trim())) {
amtSignaturesMD5++;
}
amtSignaturesRead++;
Expand All @@ -93,7 +93,7 @@ public static void main(String[] args) {
} else if (databaseLocation.getName().contains(".sha1")) {//one signature per line
while ((line = reader.readLine()) != null) {
if (line.length() > 0) {
if (signaturesSHA1.put(line)) {
if (signaturesSHA1.put(line.trim())) {
amtSignaturesSHA1++;
}
amtSignaturesRead++;
Expand All @@ -102,7 +102,7 @@ public static void main(String[] args) {
} else if (databaseLocation.getName().contains(".sha256")) {//one signature per line
while ((line = reader.readLine()) != null) {
if (line.length() > 0) {
if (signaturesSHA256.put(line)) {
if (signaturesSHA256.put(line.trim())) {
amtSignaturesSHA256++;
}
amtSignaturesRead++;
Expand Down

0 comments on commit 47f1683

Please sign in to comment.