From ef135d2907855691001a618ecfeb8d0a813aab39 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.braun@kit.edu> Date: Wed, 27 Nov 2013 22:29:17 +0100 Subject: modtool: dashes no longer allowed in modnames at all (fixes #619) --- gr-utils/python/modtool/modtool_newmod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-utils/python/modtool/modtool_newmod.py') 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 -- cgit v1.2.3