diff --git a/lib/schemes.js b/lib/schemes.js index 45d06fe..fe0f91a 100644 --- a/lib/schemes.js +++ b/lib/schemes.js @@ -1,6 +1,6 @@ 'use strict' -const UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu +const UUID_REG = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu function isSecure (wsComponents) {