summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/modtool_newmod.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/python/modtool/modtool_newmod.py')
-rw-r--r--gr-utils/python/modtool/modtool_newmod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/modtool_newmod.py b/gr-utils/python/modtool/modtool_newmod.py
index e3b0e8e795..6e55c5ea59 100644
--- a/gr-utils/python/modtool/modtool_newmod.py
+++ b/gr-utils/python/modtool/modtool_newmod.py
@@ -52,7 +52,7 @@ class ModToolNewModule(ModTool):
self._info['modname'] = self.args[1]
else:
self._info['modname'] = raw_input('Name of the new module: ')
- if not re.match('[a-zA-Z0-9_]+', self._info['modname']):
+ if not re.match('[a-zA-Z0-9_]+$', self._info['modname']):
print 'Invalid module name.'
exit(2)
self._dir = options.directory