Can we not simply do?

```
var LEADING_STAR = /^[^\S\n\r]*\*[^\S\n\r]?/gm;
```