Fix parsing error per issue 72

master
Trent Richardson 2011-01-03 10:30:57 -05:00
parent a018a5611b
commit c1d7c5a106
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ $.extend(Timepicker.prototype, {
// the time should come after x number of characters and a space.
// x = at least the length of text specified by the date format
var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
regstr = '.{' + dp_dateFormat.length + ',}\\s*' + this._defaults.separator.replace(/\s/g, '\\s?') + regstr;
regstr = '.{' + dp_dateFormat.length + ',}\\s*' + this._defaults.separator + regstr;
}
treg = timeString.match(new RegExp(regstr, 'i'));