Skip to content

Commit 18edbbd

Browse files
committed
Removed $ character from regex.
1 parent b08fba9 commit 18edbbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def proj(self, *attributes, **named_attributes):
313313
Each attribute name can only be used once.
314314
"""
315315
# new attributes in parentheses are included again with the new name without removing original
316-
duplication_pattern = re.compile(r'\s*\(\s*(?P<name>\w*[a-z]+\w*)\s*$\)\s*$')
316+
duplication_pattern = re.compile(r'\s*\(\s*(?P<name>\w*[a-z]+\w*)\s*\)\s*$')
317317
# attributes without parentheses renamed
318318
rename_pattern = re.compile(r'\s*(?P<name>\w*[a-z]+\w*)\s*$')
319319
replicate_map = {k: m.group('name')

0 commit comments

Comments
 (0)