From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 05:52:40 +0000 (-0800) Subject: Remove unneeded char from regex X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=227d73fc6d3b4c414aa601ca07472635829942fb;p=buffer.git 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. --- 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