From 33d59fc0973efa1e4f770a717e7a0406aacb4a84 Mon Sep 17 00:00:00 2001 From: radixrat Date: Tue, 20 Dec 2022 16:03:03 -0500 Subject: [PATCH] make regex specific to s optional --- bin/nostr_console.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nostr_console.dart b/bin/nostr_console.dart index 2ae8249..c46086a 100644 --- a/bin/nostr_console.dart +++ b/bin/nostr_console.dart @@ -123,7 +123,7 @@ Future main(List arguments) async { Set userRelayList = Set.from(argResults[relayArg].split(",")); Set parsedRelays = {}; userRelayList.forEach((relay) { - if(relay.startsWith(RegExp(r'^ws[a-z]?:\/\/'))) { + if(relay.startsWith(RegExp(r'^ws[s]?:\/\/'))) { parsedRelays.add(relay); } else { print("The provided relay entry: $relay does not start with ws:// or wss://, omitting");