Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/modules/networks/resources/ResourceSingleAddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ export const ResourceSingleAddressInput = ({

// Case 1: If it has characters (potential domain) but is not a CIDR block
if (hasChars && !isCIDRBlock) {
if (
!validator.isValidDomain(value) ||
!value.includes(".") ||
value.endsWith(".")
) {
return "Please enter a valid domain, e.g. service.internal, example.com or *.example.com";
if (!validator.isValidDomain(value) || value.endsWith(".")) {
return "Please enter a valid domain, e.g. service.internal, example.com, *.example.com or service";
}
Comment thread
Squiddim marked this conversation as resolved.
return ""; // Valid domain
}
Expand Down