If things ever break, this would be easier to debug (and at least for me, to understand!) if it were written as

``` js
var match = (/^\.\$(.+)\.0$/).exec(childName);
expect(match).not.toBeNull();
return match[1];
```

Obviously no worse than before though.