UNPKG

eslint-plugin-security

Version:
8 lines (4 loc) 352 B
# Detects "RegExp(variable)", which might allow an attacker to DOS your server with a long-running regular expression (`security/detect-non-literal-regexp`) ⚠️ This rule _warns_ in the ✅ `recommended` config. <!-- end auto-generated rule header --> More information: [Regular Expression DoS and Node.js](../regular-expression-dos-and-node.md)