Skip to content

Commit c1d7c5a

Browse files
Fix parsing error per issue 72
1 parent a018a56 commit c1d7c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ $.extend(Timepicker.prototype, {
195195
// the time should come after x number of characters and a space.
196196
// x = at least the length of text specified by the date format
197197
var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
198-
regstr = '.{' + dp_dateFormat.length + ',}\\s*' + this._defaults.separator.replace(/\s/g, '\\s?') + regstr;
198+
regstr = '.{' + dp_dateFormat.length + ',}\\s*' + this._defaults.separator + regstr;
199199
}
200200

201201
treg = timeString.match(new RegExp(regstr, 'i'));

0 commit comments

Comments
 (0)