Skip to content

Commit

Permalink
Add trim
Browse files Browse the repository at this point in the history
  • Loading branch information
popeeyy committed Dec 18, 2023
1 parent 84dc9fa commit d6605ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/certUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Certificate {

// Clean up base64 string
if (typeof cert === "string" || cert instanceof String) {
cert = cert.replace(/\r/g, "");
cert = cert.replace(/\r/g, "").trim();
decoded = Buffer.from(cert, "base64").toString();
}

Expand Down

0 comments on commit d6605ff

Please sign in to comment.