Added regex property on mocks to enable Regex matching on path property.
To support JSON files and javascript objects, I've used the approach.
With this, all regex patterns are interpreted as strings, and proper escapings of path slashes etc. are necessary. See the examples for details on this.
Added
regex
property on mocks to enable Regex matching on path property. To support JSON files and javascript objects, I've used the approach. With this, all regex patterns are interpreted as strings, and proper escapings of path slashes etc. are necessary. See the examples for details on this.Further more cleaned some minor jshint cleanup.
Implements #89