allow - and _ in project names but warn that this could be unsafe.
1 files changed, 7 insertions(+), 1 deletions(-)

M conf.in
M conf.in +7 -1
@@ 269,13 269,19 @@ function run_new () {
         fi
         exit 1
     fi
-    for reqsubstr in '-' '_' '.'; do
+    for reqsubstr in '.'; do
         if [ -z "${PROJ##*$reqsubstr*}" ]; then
             echo "project name ${PROJ} is unsafe: it contains the substring '$reqsubstr'."
             echo "please use a lowercase name without punctuation and without - or _"
             exit 1
         fi
     done
+    for reqsubstr in '-' '_'; do
+        if [ -z "${PROJ##*$reqsubstr*}" ]; then
+            # warn
+            echo "WARNING: project name ${PROJ} could be unsafe: it contains the substring '$reqsubstr'." >&2
+        fi
+    done
     if test ! x"${ARG_LANG}" = x""; then
         PROJLANG="${ARG_LANG}"
     else