mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Clean up regexen; use common regex for numbers. Close gh-862.
This commit is contained in:
committed by
Dave Methvin
parent
74cc5b0984
commit
c14a6b385f
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user