class
Analyzer::Javascript::Elysia
- Analyzer::Javascript::Elysia
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/javascript/elysia.crConstant Summary
-
ELYSIA_MARKERS_RE =
Regex.union("from 'elysia'", "from \"elysia\"", "require('elysia')", "require(\"elysia\")") -
Precompiled once — a single PCRE2-JIT scan replaces four naive String#includes? substring scans over the whole file content. Regex.union auto-escapes each literal (including the parens in "require('elysia')"), so it is provably equivalent to the OR-of-includes? it replaces.
-
JS_EXTENSIONS =
[".js", ".mjs", ".cjs", ".ts"]