Skip to content

Commit

Permalink
Merge pull request #221 from frankmarazita/master
Browse files Browse the repository at this point in the history
fix: support v6 and v7 uuids
  • Loading branch information
pierotofy authored Jul 30, 2024
2 parents de3ea73 + cf7754c commit ed15d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/taskNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = {
const userUuid = req.get('set-uuid');

// Valid UUID and no other task with same UUID?
if (/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(userUuid) && !TaskManager.singleton().find(userUuid)){
if (/^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(userUuid) && !TaskManager.singleton().find(userUuid)){
req.id = userUuid;
next();
}else{
Expand Down

0 comments on commit ed15d32

Please sign in to comment.