Skip to content

Commit

Permalink
chore: update regex pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Jul 20, 2024
1 parent 89e277f commit 23805f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaianet
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ create_collection() {
# 10.1 recover from the given qdrant collection snapshot
if [ -n "$url_snapshot" ]; then
# Regular expression for URL validation
regex="^(https?|ftp)://[^\s/$.?#].[^\s]*$"
regex='(https?|ftp)://[-[:alnum:]\+&@#/%?=~_|!:,.;]+'

# Check if $url_snapshot is a valid URL
if [[ $url_snapshot =~ $regex ]]; then
Expand Down

0 comments on commit 23805f4

Please sign in to comment.