Skip to content

Commit dc6fb88

Browse files
v0.3.2
1 parent a3d2254 commit dc6fb88

File tree

8 files changed

+47
-23
lines changed

8 files changed

+47
-23
lines changed

dist/BaseEx.cjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
55
/*
66
* [BaseEx]{@link https://github.com/UmamiAppearance/BaseExJS}
77
*
8-
* @version 0.3.1
8+
* @version 0.3.2
99
* @author UmamiAppearance [mail@umamiappearance.eu]
1010
* @license GPL-3.0 AND BSD-3-Clause (Base91, Copyright (c) 2000-2006 Joachim Henke)
1111
*/
@@ -75,6 +75,9 @@ class Base16 {
7575

7676
// Remove the leading 0x if present
7777
input = String(input).replace(/^0x/, '');
78+
79+
// Make it lower case
80+
input = input.toLowerCase();
7881

7982
// Ensure even number of characters
8083
if (input.length % 2) {
@@ -182,6 +185,9 @@ class Base32 {
182185
const version = this.utils.getVersion(args);
183186
const outputType = this.utils.setIOType(args, "out");
184187

188+
// Make it upper case
189+
input = input.toUpperCase();
190+
185191
// If the input is unpadded, pad it.
186192
const missingChars = input.length % 8;
187193
if (missingChars) {

dist/BaseEx.esm.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* [BaseEx]{@link https://github.com/UmamiAppearance/BaseExJS}
33
*
4-
* @version 0.3.1
4+
* @version 0.3.2
55
* @author UmamiAppearance [mail@umamiappearance.eu]
66
* @license GPL-3.0 AND BSD-3-Clause (Base91, Copyright (c) 2000-2006 Joachim Henke)
77
*/
@@ -71,6 +71,9 @@ class Base16 {
7171

7272
// Remove the leading 0x if present
7373
input = String(input).replace(/^0x/, '');
74+
75+
// Make it lower case
76+
input = input.toLowerCase();
7477

7578
// Ensure even number of characters
7679
if (input.length % 2) {
@@ -178,6 +181,9 @@ class Base32 {
178181
const version = this.utils.getVersion(args);
179182
const outputType = this.utils.setIOType(args, "out");
180183

184+
// Make it upper case
185+
input = input.toUpperCase();
186+
181187
// If the input is unpadded, pad it.
182188
const missingChars = input.length % 8;
183189
if (missingChars) {

dist/BaseEx.esm.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/BaseEx.iife.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var BaseEx = (function (exports) {
44
/*
55
* [BaseEx]{@link https://github.com/UmamiAppearance/BaseExJS}
66
*
7-
* @version 0.3.1
7+
* @version 0.3.2
88
* @author UmamiAppearance [mail@umamiappearance.eu]
99
* @license GPL-3.0 AND BSD-3-Clause (Base91, Copyright (c) 2000-2006 Joachim Henke)
1010
*/
@@ -74,6 +74,9 @@ var BaseEx = (function (exports) {
7474

7575
// Remove the leading 0x if present
7676
input = String(input).replace(/^0x/, '');
77+
78+
// Make it lower case
79+
input = input.toLowerCase();
7780

7881
// Ensure even number of characters
7982
if (input.length % 2) {
@@ -181,6 +184,9 @@ var BaseEx = (function (exports) {
181184
const version = this.utils.getVersion(args);
182185
const outputType = this.utils.setIOType(args, "out");
183186

187+
// Make it upper case
188+
input = input.toUpperCase();
189+
184190
// If the input is unpadded, pad it.
185191
const missingChars = input.length % 8;
186192
if (missingChars) {

dist/BaseEx.iife.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "base-ex",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "A collection of classes for data representation from Base16 (hex) to basE91 written in JavaScript.",
55
"main": "dist/BaseEx.cjs",
66
"module": "src/BaseEx.js",

src/BaseEx.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* [BaseEx]{@link https://github.com/UmamiAppearance/BaseExJS}
33
*
4-
* @version 0.3.1
4+
* @version 0.3.2
55
* @author UmamiAppearance [mail@umamiappearance.eu]
66
* @license GPL-3.0 AND BSD-3-Clause (Base91, Copyright (c) 2000-2006 Joachim Henke)
77
*/
@@ -71,6 +71,9 @@ class Base16 {
7171

7272
// Remove the leading 0x if present
7373
input = String(input).replace(/^0x/, '');
74+
75+
// Make it lower case
76+
input = input.toLowerCase();
7477

7578
// Ensure even number of characters
7679
if (input.length % 2) {
@@ -178,6 +181,9 @@ class Base32 {
178181
const version = this.utils.getVersion(args);
179182
const outputType = this.utils.setIOType(args, "out");
180183

184+
// Make it upper case
185+
input = input.toUpperCase();
186+
181187
// If the input is unpadded, pad it.
182188
const missingChars = input.length % 8;
183189
if (missingChars) {

0 commit comments

Comments
 (0)