MCPcopy Index your code
hub / github.com/jquery/jquery / isAutoPx

Function isAutoPx

dist-module/jquery.slim.module.js:5410–5417  ·  view source on GitHub ↗
( prop )

Source from the content-addressed store, hash-verified

5408 rautoPx = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
5409
5410function isAutoPx( prop ) {
5411
5412 // The first test is used to ensure that:
5413 // 1. The prop starts with a lowercase letter (as we uppercase it for the second regex).
5414 // 2. The prop is not empty.
5415 return ralphaStart.test( prop ) &&
5416 rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
5417}
5418
5419// Matches dashed string for camelizing
5420var rmsPrefix = /^-ms-/;

Callers 2

adjustCSSFunction · 0.70
jQueryFactoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected