aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlouisremi <louisremi@louisremi-laptop.(none)>2010-12-09 10:23:45 +0100
committerlouisremi <louisremi@louisremi-laptop.(none)>2010-12-09 10:23:45 +0100
commit796d25cf07ad63e2008ff4b70db182d33a3533dd (patch)
tree7dae73fb27eed160c7511d787e21e4b15811db9b /src
parent8943b427f67766fd8d9e8a95b471ff4077213be2 (diff)
downloadjquery-796d25cf07ad63e2008ff4b70db182d33a3533dd.tar.gz
jquery-796d25cf07ad63e2008ff4b70db182d33a3533dd.zip
Precising the unit part of rfxnum regex
Diffstat (limited to 'src')
-rw-r--r--src/effects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js
index 51ce0c577..067383bc4 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