Re-added getPattern method
Merge pull request #93 from dantleech/fix-tests

Re-added getPattern method