File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const isLocalhost = Boolean(
14
14
window . location . hostname === 'localhost' ||
15
15
// [::1] is the IPv6 localhost address.
16
16
window . location . hostname === '[::1]' ||
17
- // 127.0.0.1 /8 is considered localhost for IPv4.
17
+ // 127.0.0.0 /8 are considered localhost for IPv4.
18
18
window . location . hostname . match (
19
19
/ ^ 1 2 7 (?: \. (?: 2 5 [ 0 - 5 ] | 2 [ 0 - 4 ] [ 0 - 9 ] | [ 0 1 ] ? [ 0 - 9 ] [ 0 - 9 ] ? ) ) { 3 } $ /
20
20
)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const isLocalhost = Boolean(
14
14
window . location . hostname === 'localhost' ||
15
15
// [::1] is the IPv6 localhost address.
16
16
window . location . hostname === '[::1]' ||
17
- // 127.0.0.1 /8 is considered localhost for IPv4.
17
+ // 127.0.0.0 /8 are considered localhost for IPv4.
18
18
window . location . hostname . match (
19
19
/ ^ 1 2 7 (?: \. (?: 2 5 [ 0 - 5 ] | 2 [ 0 - 4 ] [ 0 - 9 ] | [ 0 1 ] ? [ 0 - 9 ] [ 0 - 9 ] ? ) ) { 3 } $ /
20
20
)
You can’t perform that action at this time.
0 commit comments