diff scripts/pkg/get_forge_pkg.m @ 10959:4f46520e2103

relax check in get_forge_pkg
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 11 Sep 2010 13:21:17 +0200
parents be55736a0783
children c9b0a75b02e8
line wrap: on
line diff
--- a/scripts/pkg/get_forge_pkg.m
+++ b/scripts/pkg/get_forge_pkg.m
@@ -29,7 +29,7 @@
   ## Verify that name is valid.
   if (! (ischar (name) && rows (name) == 1 && ndims (name) == 2))
     error ("get_forge_pkg: package name must be a string");
-  elseif (! all (isalnum (name) | name == "-" | name == "."))
+  elseif (! all (isalnum (name) | name == "-" | name == "." | name == "_"))
     error ("get_forge_pkg: invalid package name: %s", name);
   endif