From 227d73fc6d3b4c414aa601ca07472635829942fb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 15 Feb 2018 21:52:40 -0800 Subject: [PATCH] Remove unneeded char from regex We're already finding the first = and discarding it and everything that follows in the split() call a few lines below. There should be no = left in the string to remove. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c9ada05..b2ace85 100644 --- a/index.js +++ b/index.js @@ -1587,7 +1587,7 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) { // HELPER FUNCTIONS // ================ -var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_=]/g +var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g function base64clean (str) { // Node takes equal signs as end of the Base64 encoding -- 2.34.1