Skip to content

Commit aff5e90

Browse files
authored
Update main.sh
1 parent 4ad29ac commit aff5e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ is_dns_record_format_valid() {
602602
is_ip_format_valid "$1"
603603
fi
604604
if [ "$rtype" = 'NS' ]; then
605-
is_domain_format_valid "$1" 'ns_record'
605+
is_domain_format_valid "${1::-1}" 'ns_record'
606606
fi
607607
if [ "$rtype" = 'MX' ]; then
608-
is_domain_format_valid "$1" 'mx_record'
608+
is_domain_format_valid "${1::-1}" 'mx_record'
609609
is_int_format_valid "$priority" 'priority_record'
610610
fi
611611

0 commit comments

Comments
 (0)