Fixed a RegExp and Ruby warning.
Merge pull request #5 from tbuehlmann/warnings

Fixed a RegExp and Ruby warning