文件操作 - match-record.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/es-abstract/helpers/records/match-record.js
编辑文件内容
'use strict'; var hasOwn = require('hasown'); // https://262.ecma-international.org/13.0/#sec-match-records module.exports = function isMatchRecord(record) { return ( !!record && typeof record === 'object' && hasOwn(record, '[[StartIndex]]') && hasOwn(record, '[[EndIndex]]') && record['[[StartIndex]]'] >= 0 && record['[[EndIndex]]'] >= record['[[StartIndex]]'] && String(parseInt(record['[[StartIndex]]'], 10)) === String(record['[[StartIndex]]']) && String(parseInt(record['[[EndIndex]]'], 10)) === String(record['[[EndIndex]]']) ); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件