13 lines
227 B
XML
13 lines
227 B
XML
/* eslint-disable */
|
|
var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
|
|
|
|
function addUnit(value) {
|
|
if (value == null) {
|
|
return undefined;
|
|
}
|
|
|
|
return REGEXP.test('' + value) ? value + 'px' : value;
|
|
}
|
|
|
|
module.exports = addUnit;
|