diff options
author | Trent <trentdrichardson@gmail.com> | 2012-01-30 15:32:35 -0500 |
---|---|---|
committer | Trent <trentdrichardson@gmail.com> | 2012-01-30 15:32:35 -0500 |
commit | 547e6adde3a81880833e243df95a0bf2642da3bc (patch) | |
tree | 70bbf17aeaac53b3b46120c177e499e13d83a9a5 | |
parent | fc2531ff86b5d2e270f062f847c7a804ea85f12f (diff) | |
download | jQuery-Timepicker-Addon-547e6adde3a81880833e243df95a0bf2642da3bc.zip jQuery-Timepicker-Addon-547e6adde3a81880833e243df95a0bf2642da3bc.tar.gz jQuery-Timepicker-Addon-547e6adde3a81880833e243df95a0bf2642da3bc.tar.bz2 |
timeFormat tt h:mm not parsed fix by clear00
-rw-r--r-- | jquery-ui-timepicker-addon.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 0f8b105..44f56d8 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -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')); |