文件操作 - no-server-example.com.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoServerExample = void 0; const NoServerExample = () => { return { Server(server, { report, location }) { // eslint-disable-next-line no-useless-escape const pattern = /^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/; if (server.url && pattern.test(server.url)) { report({ message: 'Server `url` should not point to example.com or localhost.', location: location.child(['url']), }); } }, }; }; exports.NoServerExample = NoServerExample;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件