Permalink
Browse files

docs: fix the URL regex (#1057)

The "//[host][:port][/database]" portion of the URL regex does not accurately represent the URL variations that are actually accepted.
The proposed "[//host[:port]/][database]" does.
  • Loading branch information...
bpd0018 authored and davecramer committed Jan 8, 2018
1 parent 90535d9 commit 6c5490f90da434f37abd0be0f7bbdc38169ec33f
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
@@ -93,7 +93,7 @@ jdbc:postgresql://host:port/
```
The general format for a JDBC URL for connecting to a PostgreSQL server is as follows, with items in square brackets ([ ]) being optional:
```
jdbc:postgresql://[host][:port][/[database]][?property1=value1[&property2=value2]...]
jdbc:postgresql:[//host[:port]/][database][?property1=value1[&property2=value2]...]
```
where:
* **jdbc:postgresql:** (Required) is known as the sub-protocol and is constant.

0 comments on commit 6c5490f

Please sign in to comment.