projects
/
buffer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b9a88
)
fix regression in PR #64
author
Feross Aboukhadijeh
<feross@feross.org>
Tue, 4 Aug 2015 13:42:13 +0000
(15:42 +0200)
committer
Feross Aboukhadijeh
<feross@feross.org>
Tue, 4 Aug 2015 13:42:13 +0000
(15:42 +0200)
_ is an allowed character, used in "url safe" base 64, which node
supports
index.js
patch
|
blob
|
history
diff --git
a/index.js
b/index.js
index cf8a14c89e839fa972989423f19926eca8b9b2bc..7cd95fee978cef2e7503dfe3313f61040b01f2aa 100644
(file)
--- 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