domnikl/highscore — pull request #14 by carlosramireziii (2012-03-07 06:45:22+00:00)
Title: Fixed bug for word patterns which contain groups

There was a bug when using the ```:word_pattern``` option with a regular expression that contained groups. For these types of expressions, the ```scan``` [method](http://ruby-doc.org/core-1.9.3/String.html#method-i-scan) will return each individual result as an array, resulting in an array of arrays instead of a simple array of strings. The fix was a call to ```flatten``` on the result.