We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a8301b commit 9849f52Copy full SHA for 9849f52
datajoint/utils.py
@@ -50,7 +50,7 @@ def get_master(full_table_name: str) -> str:
50
:return: Supposed master full table name or empty string if not a part table name.
51
:rtype: str
52
"""
53
- match = re.match(r"(?P<master>`[^`]+`.`[^`]+)__(?P<part>[^`]+)`", full_table_name)
+ match = re.match(r"(?P<master>`[^`]+`.`[#~]?\w+)__(?P<part>\w+)`", full_table_name)
54
return match["master"] + "`" if match else ""
55
56
0 commit comments