From: Feross Aboukhadijeh Date: Tue, 4 Aug 2015 13:42:13 +0000 (+0200) Subject: fix regression in PR #64 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d3619243c0e3ac800cbeef1f41bdb63092b3c83b;p=buffer.git fix regression in PR #64 _ is an allowed character, used in "url safe" base 64, which node supports --- diff --git a/index.js b/index.js index cf8a14c..7cd95fe 100644 --- a/index.js +++ b/index.js @@ -1290,7 +1290,7 @@ Buffer._augment = function _augment (arr) { return arr } -var INVALID_BASE64_RE = /[^+\/0-9A-Za-z\-]/g +var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g function base64clean (str) { // Node strips out invalid characters like \n and \t from the string, base64-js does not