Skip to content

Commit 977dbcb

Browse files
Merge pull request #171 from guzman-raphael/erd-fix-notests
HotFix Updates
2 parents f5b348f + 0a6e590 commit 977dbcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+dj/ERD.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ function draw(self)
113113
% draw the diagram
114114

115115
% exclude auxiliary tables (job tables, etc.)
116-
j = cellfun(@isempty, regexp(self.nodes, '^`[a-z]\w*`\.`~\w+`$'));
116+
j = cellfun(@isempty, regexp(self.nodes, '^`.+`\.`~\w+`$'));
117117
self.nodes = self.nodes(j);
118118

119119
self.makeGraph
120120

121-
rege = cellfun(@(s) sprintf('^`[a-z]\\w*`\\.`%s[a-z]\\w*`$',s), dj.Schema.tierPrefixes, 'uni', false);
121+
rege = cellfun(@(s) sprintf('^`.+`\\.`%s[a-z]\\w*`$',s), dj.Schema.tierPrefixes, 'uni', false);
122122
rege{end+1} = '^`[a-z]\w*`\.`\W?\w+__\w+`$'; % for part tables
123123
rege{end+1} = '^\d+$'; % for numbered nodes
124124
tiers = cellfun(@(l) find(~cellfun(@isempty, regexp(l, rege)), 1, 'last'), self.graph.Nodes.Name);

0 commit comments

Comments
 (0)