Skip to content

Commit

Permalink
Merge pull request #8414 from walidmujahid/1.11
Browse files Browse the repository at this point in the history
feat: allow hyphen in host
  • Loading branch information
ehuelsmann authored Sep 30, 2024
2 parents 1c2d521 + f0c5fad commit 405b0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LedgerSMB/Admin/Command.pm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ sub connect_data_from_arg {
$arg =~ m!^
(postgresql://)?
(((?<user>[^@]+)@)?
(?<host>\[[:0-9a-zA-Z]+\]|[\w.]+)
(?<host>\[[:0-9a-zA-Z]+\]|[\w.-]+)
(:(?<port>\d+))?/)?
((?<dbname>[a-z0-9A-Z_% -]+)
(\#(?<schema>[a-z0-9A-Z_% -]+))?
Expand Down

0 comments on commit 405b0f0

Please sign in to comment.