mhevery/angular.js — comment on commit 638283feaefe4985bab2fb530d6ed73a5f3bef68
File: src/Angular.js line 953
By IgorMinar:

why is it important to make sense of an idiotic input? I'd rather just throw an exception if the input is not sane.

in any case, if you really want to, you can do this:

```
' ,,,,a,b, c,d , e , '.replace(/(^[\s,]*|[\s,]*$|[\s,]*(?=,))/g, '').split(/\s*,\s*/)
[ 'a', 'b', 'c', 'd', 'e' ]
```