From c14a6b385fa419ce67f115e853fb4a89d8bd8fad Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sun, 22 Jul 2012 22:23:32 -0400 Subject: Clean up regexen; use common regex for numbers. Close gh-862. --- src/effects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/effects.js') diff --git a/src/effects.js b/src/effects.js index 8ab41cbd3..dbca88650 100644 --- a/src/effects.js +++ b/src/effects.js @@ -1,6 +1,6 @@ var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, - rfxnum = /^(?:([\-+])=)?([\d+.\-]+)([a-z%]*)$/i, + rfxnum = new RegExp( "^(?:([-+])=|)(" + core_pnum + ")([a-z%]*)$", "i" ), rrun = /queueHooks$/, animationPrefilters = [ defaultPrefilter ], tweeners = { -- cgit v1.2.3