From: louisremi Date: Thu, 9 Dec 2010 09:23:45 +0000 (+0100) Subject: Precising the unit part of rfxnum regex X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=796d25cf07ad63e2008ff4b70db182d33a3533dd;p=jquery.git Precising the unit part of rfxnum regex --- diff --git a/src/effects.js b/src/effects.js index 51ce0c5..067383b 100644 --- a/src/effects.js +++ b/src/effects.js @@ -2,7 +2,7 @@ var elemdisplay = {}, rfxtypes = /^(?:toggle|show|hide)$/, - rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/, + rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, timerId, fxAttrs = [ // height animations