CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-babel-plugin-transform-es2015-sticky-regex

tessl install tessl/npm-babel-plugin-transform-es2015-sticky-regex@6.24.0

Babel plugin that transforms ES2015 sticky regex literals to ES5-compatible RegExp constructor calls

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.03x

Baseline

Agent success rate without this tile

97%

rubric.jsonevals/scenario-2/

{
  "context": "Evaluates whether the solution uses @babel/plugin-transform-sticky-regex with @babel/core to turn sticky regex literals into RegExp constructor calls that mirror the plugin's intended output. Scoring is based solely on correct plugin configuration and observable transform results tied to the spec's cases.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin configured",
      "description": "Includes @babel/plugin-transform-sticky-regex in the @babel/core transform pipeline (e.g., plugins array) so it runs on provided source strings.",
      "max_score": 25
    },
    {
      "name": "Sticky rewritten",
      "description": "Demonstrates that /.../y literals become new RegExp(\"pattern\", \"flags\") in output, matching @babel/plugin-transform-sticky-regex behavior without manual regex parsing.",
      "max_score": 25
    },
    {
      "name": "Flags preserved",
      "description": "Shows the plugin passes through all original flags (e.g., \"my\" with sticky) in the emitted RegExp constructor's flag string exactly as produced by @babel/plugin-transform-sticky-regex.",
      "max_score": 20
    },
    {
      "name": "Non-sticky intact",
      "description": "Verifies literals lacking the y flag remain untouched when processed, reflecting the plugin's no-op behavior for non-sticky patterns.",
      "max_score": 15
    },
    {
      "name": "Core API use",
      "description": "Uses an @babel/core transform entry point (such as transform or transformSync) to execute the plugin rather than manual source rewriting.",
      "max_score": 15
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/babel-plugin-transform-es2015-sticky-regex@6.24.x
tile.json