纪念日调整

This commit is contained in:
limqhz
2022-12-01 17:21:12 +08:00
parent 526a7505a7
commit abdcb5661e
37 changed files with 705 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
var REGEXP = getRegExp('^\d+(\.\d+)?$');
function addUnit(value) {
if (value == null) {
return undefined;
}
return REGEXP.test('' + value) ? value + 'px' : value;
}
module.exports = {
addUnit: addUnit,
};