We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
broofa
ctavan
Learn more about funding links in repositories.
Report abuse
1 parent e6e5412 commit 4f99b5eCopy full SHA for 4f99b5e
src/stringify.js
@@ -7,7 +7,7 @@ import validate from './validate.js';
7
const byteToHex = [];
8
9
for (let i = 0; i < 256; ++i) {
10
- byteToHex.push((i + 0x100).toString(16).substr(1));
+ byteToHex.push((i + 0x100).toString(16).slice(1));
11
}
12
13
export function unsafeStringify(arr, offset = 0) {
src/version.js
@@ -5,7 +5,7 @@ function version(uuid) {
5
throw TypeError('Invalid UUID');
6
- return parseInt(uuid.substr(14, 1), 16);
+ return parseInt(uuid.slice(14, 15), 16);
export default version;
0 commit comments