Merge pull request #38 from rbhitchcock/master

Using Regexp.prototype.test() instead of String.prototype.endsWith()