Fix format validation regex
Merge pull request #2 from CQQL/rails-4

Fix format validation regex