From a04ea52236a9307feffb2b218e060fc19c59f5b8 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 9 Jan 2025 19:29:08 +0000 Subject: [PATCH] refactor(lib/schemes): remove useless assertions 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) {