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 37f5521 commit 44b6b01Copy full SHA for 44b6b01
func/main.sh
@@ -664,6 +664,16 @@ validate_format_mhdmw() {
664
check_format='ok'
665
fi
666
667
+ if [[ "$1" =~ ^[0-9][-|,|0-9]{0,28}[0-9]$ ]]; then
668
+ check_format='ok'
669
+ crn_values=${1//,/ }
670
+ crn_values=${crn_values//-/ }
671
+ for crn_vl in $crn_values; do
672
+ if [ "$crn_vl" -gt $limit ]; then
673
+ check_format='invalid'
674
+ fi
675
+ done
676
677
if [[ "$1" =~ ^[0-9]+$ ]] && [ "$1" -lt $limit ]; then
678
679
0 commit comments