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 7e87255 commit 9e13ef6Copy full SHA for 9e13ef6
packages/tooling/src/main/pkl/Base.pkl
@@ -47,3 +47,9 @@ typealias BinName = String
47
typealias Purl = String(matches(
48
Regex(#"^pkg:[a-zA-Z][a-zA-Z0-9+.-]*\/[a-zA-Z0-9._-]+(?:@[a-zA-Z0-9._-]+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$"#)
49
))
50
+
51
+/// Represents a port number.
52
+typealias PortNumber = Int(isBetween(1, 65535))
53
54
+/// Represents a non-root port number.
55
+typealias NonRootPortNumber = Int(isBetween(1024, 65535))
0 commit comments