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-3/

{
  "context": "Evaluates how the solution leverages @babel/plugin-transform-sticky-regex within a Babel transform to rewrite sticky regex literals while respecting non-sticky cases. Focuses purely on correct plugin configuration and expected transformation outcomes tied to the provided spec.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin use",
      "description": "Transforms code via Babel with @babel/plugin-transform-sticky-regex active (for example, listed in the plugins array) instead of manual regex rewrites.",
      "max_score": 30
    },
    {
      "name": "Sticky rewrite",
      "description": "With the plugin enabled, /foo/y is emitted as new RegExp(\"foo\", \"y\") or equivalent output produced by the plugin.",
      "max_score": 25
    },
    {
      "name": "Flag preservation",
      "description": "Combined flags such as /ab+c/gy are preserved exactly in the constructor call emitted by @babel/plugin-transform-sticky-regex.",
      "max_score": 20
    },
    {
      "name": "Non-sticky passthrough",
      "description": "Non-sticky literals like /bar/g remain untouched when processed through the plugin.",
      "max_score": 15
    },
    {
      "name": "Constructor untouched",
      "description": "Existing RegExp constructor usages (for example, new RegExp(\"foo\", \"y\")) are left unchanged by the plugin-driven transform.",
      "max_score": 10
    }
  ]
}

Version

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