Skip to content

Commit 46fbe95

Browse files
author
Guillaume Tournier
committed
fix url host regex
1 parent bed2b7e commit 46fbe95

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-form-validators",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "Simple validations with redux-form / react-final-form",
55
"module": "lib/index.js",
66
"main": "lib/index.js",

src/url.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ function buildReg (options, capture) {
147147
group(options.ipv6, IPV6, capture),
148148
group(options.host, HOST, capture),
149149
group(options.local, 'localhost', capture)
150-
].join('|')})` +
150+
]
151+
.filter(g => g)
152+
.join('|')})` +
151153
group(options.port, PORT, capture) +
152154
group(options.path, PATH, capture) +
153155
group(options.search, SEARCH, capture) +

0 commit comments

Comments
 (0)