diff options
author | Martin Braun <martin.braun@kit.edu> | 2013-11-27 22:29:17 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@kit.edu> | 2013-11-27 22:29:17 +0100 |
commit | ef135d2907855691001a618ecfeb8d0a813aab39 (patch) | |
tree | 73b8a4b03ca1bc8af675e53cf33e02e9f24cbb3e /gr-utils/python/modtool/modtool_newmod.py | |
parent | 6bdec053259dfa1004b9403e039358a4046d309d (diff) |
modtool: dashes no longer allowed in modnames at all (fixes #619)
Diffstat (limited to 'gr-utils/python/modtool/modtool_newmod.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_newmod.py | 2 |
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 |