Skip to content

Commit 24c434b

Browse files
authored
Merge pull request #13 from bavix/base64n
fix base64 normalize
2 parents 0bc54be + 5fbc96d commit 24c434b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

public/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/input.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default class InputComponent extends React.Component {
8787
case TYPE_HIGH_LOW:
8888
return JSON.stringify(objectParse(input))
8989
case TYPE_BASE64:
90-
return input
90+
return btoa(atob(input))
9191
}
9292

9393
const uuid = uuidFormatter(input)

0 commit comments

Comments
 (0)