We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01ed37 commit 48c51e6Copy full SHA for 48c51e6
2 files changed
spec/type_aliases/host_spec.rb
@@ -35,6 +35,8 @@
35
'bob@example.com',
36
'%.example.com',
37
'2001:0d8',
38
+ '192.0.2.0/24',
39
+ '2001:db8::/32',
40
].each do |value|
41
describe value.inspect do
42
it { is_expected.not_to allow_value(value) }
types/host.pp
@@ -1,2 +1,2 @@
1
# @summary Validate a host (FQDN or IP address)
2
-type Stdlib::Host = Variant[Stdlib::Fqdn, Stdlib::IP::Address]
+type Stdlib::Host = Variant[Stdlib::Fqdn, Stdlib::IP::Address::Nosubnet]
0 commit comments