From 44fc32ab449a2a0575070821b0f28d2c3dfa9735 Mon Sep 17 00:00:00 2001 From: Trent Richardson Date: Wed, 5 Jan 2011 10:00:57 -0500 Subject: [PATCH] Fix regex parsing with separator option --- jquery-ui-timepicker-addon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));