UNPKG

@lcap/nasl

Version:

NetEase Application Specific Language

15 lines 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isFrontendParam = void 0; const types_1 = require("../types"); const utils_1 = require("../utils"); exports.isFrontendParam = { name: 'is-frontend-param', afterInstruct(action) { if ((0, utils_1.isFrontendPath)(action.path) && /params\[(\d+|name[^\]]+)\]/.test(action.path)) { return types_1.RuleResult.Frontend; } return types_1.RuleResult.UnMatch; }, }; //# sourceMappingURL=is-frontend-param.js.map