A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
For some reason my values are not getting "clean'ed". In my schema I have:
videoLink: { type: String, regEx: SimpleSchema.RegEx.Url, label: 'The url of the file.', optional: true},
But when I insert it into the collection I still get a insert valid url error.
Hi there,
For some reason my values are not getting "clean'ed". In my schema I have:
videoLink: { type: String, regEx: SimpleSchema.RegEx.Url, label: 'The url of the file.', optional: true},
But when I insert it into the collection I still get a insert valid url error.
How can I fix this?