troygoode/node-roll — pull request #2 by csauve (2014-10-30 07:27:39+00:00)
Title: Exposed input validation against internal regular expression

I added a new function to exports that tests the roll string against the matching regex. The `roll` function will also take advantage of this instead of throwing a `TypeError: Cannot read property '1' of null` when encountering input it didn't expect.