Skip to content

Commit a24697d

Browse files
authoredOct 23, 2018
Merge branch 'master' into challenge_2
2 parents fa968d0 + 1c1d2ea commit a24697d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/app/components/tree-node/tree-node.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export class TreeNodeComponent implements OnInit, OnChanges {
5050
if (item.key.indexOf(',') === -1) {
5151
return item.displayName = 'API Request' + '*';
5252
}
53+
5354
const regexResults = item.key.match(/[^,{}]+(?=,|{|})(?=,|\{)/g);
55+
5456
let index = regexResults.length - 1;
5557
item.displayName = regexResults[index];
5658
while (item.displayName.indexOf(':') === -1) {

0 commit comments

Comments
 (0)
Please sign in to comment.