Skip to content

Commit

Permalink
chore: fixed the regex to check if tezos_network is a URL
Browse files Browse the repository at this point in the history
Signed-off-by: Gino Imbrailo <[email protected]>
  • Loading branch information
GImbrailo authored and jevonearth committed May 15, 2021
1 parent 62090a4 commit 8565dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: change tezos_network variable
set_fact:
network_name: "{{ tezos_network | regex_search('([^/]*)$') }}"
when: '"http" in tezos_network'
when: tezos_network is regex("((http|https)\:\/\/)?[a-zA-Z0-9\.\/\?\:@\-_=#]+\.([a-zA-Z]){2,6}([a-zA-Z0-9\.\&\/\?\:@\-_=#])*")

- name: change node and client directory names
set_fact:
Expand Down

0 comments on commit 8565dcd

Please sign in to comment.