mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01:00
make regex specific to s optional
This commit is contained in:
parent
e36aa31608
commit
33d59fc097
@ -123,7 +123,7 @@ Future<void> main(List<String> arguments) async {
|
||||
Set<String> userRelayList = Set.from(argResults[relayArg].split(","));
|
||||
Set<String> 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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user