Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
powmedia committed Dec 13, 2013
1 parent 8c5c24a commit e0f2e7a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions distribution.amd/backbone-forms.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Backbone Forms v0.13.0
* Backbone Forms v0.14.0
*
* NOTE:
* This version is for use with RequireJS
Expand Down Expand Up @@ -519,6 +519,9 @@ Form.validators = (function() {
//Don't check empty values (add a 'required' validator for this)
if (value === null || value === undefined || value === '') return;

//Create RegExp from string if it's valid
if ('string' === typeof options.regexp) options.regexp = new RegExp(options.regexp, options.flags);

if (!options.regexp.test(value)) return err;
};
};
Expand Down Expand Up @@ -2421,7 +2424,7 @@ Form.editors.DateTime = Form.editors.Base.extend({


//Metadata
Form.VERSION = '0.13.0';
Form.VERSION = '0.14.0';

//Exports
Backbone.Form = Form;
Expand Down
Loading

0 comments on commit e0f2e7a

Please sign in to comment.