Allow user input a string on RegExp validator

13 views
Skip to first unread message

Greg Sabia Tucker

unread,
Oct 7, 2013, 11:31:08 PM10/7/13
to backbon...@googlegroups.com
Is there any reason not to allow the regexp validator parse a string? One line of code on line 527:

      if ('string' === typeof options.regexp) options.regexp = new RegExp(options.regexp);
Reply all
Reply to author
Forward
0 new messages