From 89d6f019f764532d85d1f7499355e1cd3075f0b5 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 25 Sep 2022 20:14:42 +0200 Subject: chore: fix some warnings --- subprojects/frontend/src/xtext/webSocketMachine.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'subprojects/frontend/src/xtext') diff --git a/subprojects/frontend/src/xtext/webSocketMachine.ts b/subprojects/frontend/src/xtext/webSocketMachine.ts index a1eee781..b5b40d11 100644 --- a/subprojects/frontend/src/xtext/webSocketMachine.ts +++ b/subprojects/frontend/src/xtext/webSocketMachine.ts @@ -39,8 +39,7 @@ export function isWebSocketURLLocal(webSocketURL: string | undefined): boolean { return ( hostname === 'localhost' || hostname === '[::1]' || - hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/) !== - null + hostname.match(/^127(?:\.(?:25[0-5]|2[0-4]\d|[01]?\d\d?)){3}$/) !== null ); } -- cgit v1.2.3-54-g00ecf