fix: allow lowercase hex in Uint64 (#135)

This commit is contained in:
Nathan Nichols
2021-06-11 10:58:15 -07:00
parent 7e7f47cc20
commit c149ec87ea
2 changed files with 30 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ import * as bigInt from "big-integer";
import { isInstance } from "big-integer";
import { Buffer } from "buffer/";
const HEX_REGEX = /^[A-F0-9]{1,16}$/;
const HEX_REGEX = /^[a-fA-F0-9]{1,16}$/;
const mask = bigInt(0x00000000ffffffff);
/**