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 5e6ad34 commit c9f8c5aCopy full SHA for c9f8c5a
func/main.sh
@@ -764,6 +764,22 @@ validate_format_common() {
764
log_event "$E_INVALID" "$EVENT"
765
exit $E_INVALID
766
fi
767
+ if [[ "$1" =~ @ ]] && [ ${#1} -gt 1 ] ; then
768
+ echo "Error: @ can not be mixed"
769
+ log_event "$E_INVALID" "$EVENT"
770
+ exit $E_INVALID
771
+ fi
772
+ if [[ $1 =~ \* ]]; then
773
+ if [[ ! $1 =~ \*$ ]]; then
774
+ echo "Error: * can be used only at the end"
775
776
777
778
+ if [ "$(echo $1 | grep -o '*'|wc -l)" -gt 1 ]; then
779
780
+ echo "Error: * can be used only once"
781
782
783
}
784
785
# DNS record value
0 commit comments