blob: 77530e9cb0e355adb6747e5912ecac98848eb7a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import validate from './validate.js';
function version(uuid) {
if (!validate(uuid)) {
throw TypeError('Invalid UUID');
}
return parseInt(uuid.substr(14, 1), 16);
}
export default version;
|