mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
feat: Implement net.cidr_contains builtin (#471)
Major changes: - Implement the `net.cidr_contains` builtin - Enable the v0 and v1 test for `net.cidr_contains` - Add the `netip` crate to standardize CIDR searching and other operations Key Concept: - Allow users to leverage the `net.cidr_contains` builtin to check whether an IPv4 or IPv6 CIDR contains a specified IP address or subnet. Testing: - All tests passing. Signed-off-by: tjons <tylerschade99@gmail.com>
This commit is contained in:
@@ -46,6 +46,7 @@ v0/jsonschema
|
||||
v0/negation
|
||||
v0/nestedreferences
|
||||
v0/netcidrisvalid
|
||||
v0/netcidrcontains
|
||||
v0/numbersrange
|
||||
v0/numbersrangestep
|
||||
v0/objectfilter
|
||||
@@ -150,6 +151,7 @@ v1/jsonremoveidempotent
|
||||
v1/jsonschema
|
||||
v1/negation
|
||||
v1/nestedreferences
|
||||
v1/netcidrcontains
|
||||
v1/netcidrisvalid
|
||||
v1/numbersrange
|
||||
v1/numbersrangestep
|
||||
@@ -206,4 +208,4 @@ v1/uuid
|
||||
v1/varreferences
|
||||
v1/virtualdocs
|
||||
v1/walkbuiltin
|
||||
v1/withkeyword
|
||||
v1/withkeyword
|
||||
|
||||
Reference in New Issue
Block a user