We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2ab4c commit a2a7ba2Copy full SHA for a2a7ba2
lib/internal/net.js
@@ -12,7 +12,7 @@ const errors = require('internal/errors');
12
13
// IPv4 Segment
14
const v4Seg = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
15
-const v4Str = `(${v4Seg}[.]){3}${v4Seg}`;
+const v4Str = `(?:${v4Seg}[.]){3}${v4Seg}`;
16
const IPv4Reg = new RegExp(`^${v4Str}$`);
17
18
// IPv6 Segment
0 commit comments