Fixed regex in specs and fixes #51.