Skip to content

Commit 61e69f3

Browse files
author
Kevin D Smith
committed
Fix nlit regular expression
1 parent 79f448b commit 61e69f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swat/cas/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _gen_table_name():
8383

8484
def _nlit(name, quote=False):
8585
''' Return `name` as an nlit '''
86-
if re.match(r'[A-Za-z_]\w*', name):
86+
if re.match(r'^[A-Za-z_]\w*$', name):
8787
if quote:
8888
return '"%s"' % _escape_string(name)
8989
return name

0 commit comments

Comments
 (0)