mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-23 00:49:42 +00:00
11 lines
No EOL
200 B
JavaScript
11 lines
No EOL
200 B
JavaScript
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; |