Skip to content

Commit 91e596a

Browse files
authored
Merge pull request #24 from WyriHaximusNet/Increase-URL-parser-schema-size-to-access-rediss
Increase URL parser schema size to access rediss://
2 parents 0be08bd + 84fff39 commit 91e596a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/add.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function uri_parser() {
2121
uri="${uri//\"/%22}"
2222

2323
# top level parsing
24-
pattern='^(([a-z]{3,5})://)?((([^:\/]+)(:([^@\/]*))?@)?([^:\/?]+)(:([0-9]+))?)(\/[^?]*)?(\?[^#]*)?(#.*)?$'
24+
pattern='^(([a-z]{3,6})://)?((([^:\/]+)(:([^@\/]*))?@)?([^:\/?]+)(:([0-9]+))?)(\/[^?]*)?(\?[^#]*)?(#.*)?$'
2525
[[ "$uri" =~ $pattern ]] || return 1;
2626

2727
# component extraction

0 commit comments

Comments
 (0)