timeFormat tt h:mm not parsed fix by clear00
This commit is contained in:
parent
fc2531ff86
commit
547e6adde3
1 changed files with 1 additions and 1 deletions
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -247,7 +247,7 @@ $.extend(Timepicker.prototype, {
|
|||
var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
|
||||
// escape special regex characters in the seperator
|
||||
var specials = new RegExp("[.*+?|()\\[\\]{}\\\\]", "g");
|
||||
regstr = '.{' + dp_dateFormat.length + ',}' + this._defaults.separator.replace(specials, "\\$&") + regstr;
|
||||
regstr = '^.{' + dp_dateFormat.length + ',}?' + this._defaults.separator.replace(specials, "\\$&") + regstr;
|
||||
}
|
||||
|
||||
treg = timeString.match(new RegExp(regstr, 'i'));
|
||||
|
|
Loading…
Reference in a new issue