Skip to content

Commit ce806fa

Browse files
authored
Allow HTTPS URLs for WP backend during config
I was trying to use an https:// URL for my WP backend and I kept getting that "URL Is not valid" error. Modified the regex to make the `s` in `https` optional, rather than the `p` in `http`. :)
1 parent 3423c3c commit ce806fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nxtwp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function start_env_frontend() {
6464

6565
# Check URL
6666
function check_url_input() {
67-
regex='(http?)://[-A-Za-z0-9:0-9]'
67+
regex='(https?)://[-A-Za-z0-9:0-9]'
6868
user_input=$1
6969

7070
if ! [[ $user_input =~ $regex ]]

0 commit comments

Comments
 (0)