From bce2d1712db2962582aec9f56e78ec4c496cef67 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 3 Jun 2011 12:09:42 +0200 Subject: [PATCH] Don't be so picky about new algorithm name. --- new_loba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_loba.sh b/new_loba.sh index 40b6ea1..ba076fb 100755 --- a/new_loba.sh +++ b/new_loba.sh @@ -25,7 +25,7 @@ EOF fi name=$(echo $1 | tr A-Z a-z) -if ! echo "$name" | grep -q '^[a-z][a-z0-9_]*$' \ +if ! echo "$name" | grep -q '^[a-z0-9_]\+$' \ || ! [ $(echo "$name" | wc -l) = 1 ]; then echo "ERROR: invalid name -- \"$name\"" >&2 exit 1 -- 2.39.5