purescript/purescript-strings — pull request #14 by davidchambers (2014-11-03 21:52:02+00:00)
Title: make match safe

`String.prototype.match` returns `null` if there is no match. For example:

```javascript
> 'abc'.match(/x/)
null
```

This change is largely copied from #13.