flatiron/resourceful — pull request #66 by gradus (2012-04-29 20:44:53+00:00)
Title: fix common.typeOf not properly detecting regexp

patch for issue #65

Added a check to see if `value instanceof RegExp` in `common.typeOf` since it appears that the val of `string.pattern(/regexp/)` is an object.

currently `enforceType()` will throw `TypeError` since `typeof(value)` is not a function.