From d3619243c0e3ac800cbeef1f41bdb63092b3c83b Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 4 Aug 2015 15:42:13 +0200 Subject: [PATCH] fix regression in PR #64 _ is an allowed character, used in "url safe" base 64, which node supports --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1