@lcap/nasl
Version:
NetEase Application Specific Language
15 lines • 549 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFrontendVariable = void 0;
const types_1 = require("../types");
const utils_1 = require("../utils");
exports.isFrontendVariable = {
name: 'is-frontend-variable',
afterInstruct(action) {
if ((0, utils_1.isFrontendPath)(action.path) && /variables\[(\d+|name[^\]]+)\]/.test(action.path)) {
return types_1.RuleResult.Frontend;
}
return types_1.RuleResult.UnMatch;
},
};
//# sourceMappingURL=is-frontend-variable.js.map