From fb3f21982f81046e3569c02057120abb1305d0b4 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 10 Jan 2025 16:22:26 +0000 Subject: [PATCH] refactor(lib/schemes): remove useless assertions (#124) Signed-off-by: Frazer Smith --- lib/schemes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {