diff options
author | Mr21 <thomastortorini@gmail.com> | 2015-02-04 14:10:14 +0100 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2015-03-09 12:00:10 -0400 |
commit | 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17 (patch) | |
tree | 27eab5fa090fa4bbbe065667dde8d7b5cc94e49e /src/var | |
parent | 34da7d552982d8ab7b18c2ceca9786d5023930f6 (diff) | |
download | jquery-9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17.tar.gz jquery-9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17.zip |
CSS: Support relative adjustment in any applicable unit
Fixes gh-1711
Closes gh-2011
Diffstat (limited to 'src/var')
-rw-r--r-- | src/var/rcssNum.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/var/rcssNum.js b/src/var/rcssNum.js new file mode 100644 index 000000000..2fc3938a5 --- /dev/null +++ b/src/var/rcssNum.js @@ -0,0 +1,7 @@ +define([ + "../var/pnum" +], function( pnum ) { + +return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + +}); |