Skip to content

Commit 44fc32a

Browse files
Fix regex parsing with separator option
1 parent faec5be commit 44fc32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ $.extend(Timepicker.prototype, {
194194
// the time should come after x number of characters and a space.
195195
// x = at least the length of text specified by the date format
196196
var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
197-
regstr = '.{' + dp_dateFormat.length + ',}\\s*' + this._defaults.separator + regstr;
197+
regstr = '.{' + dp_dateFormat.length + ',}' + this._defaults.separator + regstr;
198198
}
199199

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

0 commit comments

Comments
 (0)