diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2011-01-05 10:00:57 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2011-01-05 10:00:57 -0500 |
commit | 44fc32ab449a2a0575070821b0f28d2c3dfa9735 (patch) | |
tree | 2d8a2de99c3035129066471d5a6b9138e7a9a78c | |
parent | faec5be2c69f304fbb64ce0a6699034a544c51bd (diff) | |
download | jQuery-Timepicker-Addon-44fc32ab449a2a0575070821b0f28d2c3dfa9735.zip jQuery-Timepicker-Addon-44fc32ab449a2a0575070821b0f28d2c3dfa9735.tar.gz jQuery-Timepicker-Addon-44fc32ab449a2a0575070821b0f28d2c3dfa9735.tar.bz2 |
Fix regex parsing with separator option
-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 acb9dcd..d88c613 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -194,7 +194,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 + regstr; + regstr = '.{' + dp_dateFormat.length + ',}' + this._defaults.separator + regstr; } treg = timeString.match(new RegExp(regstr, 'i')); |