CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-glob-to-regexp

tessl install tessl/npm-glob-to-regexp@0.4.0

Convert globs to regular expressions

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.15x

Baseline

Agent success rate without this tile

87%

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses the glob-to-regexp package to implement file name pattern matching, specifically focusing on the use of curly brace alternation syntax with the extended option.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import glob-to-regexp",
      "description": "The solution imports or requires the glob-to-regexp package (e.g., `const globToRegExp = require('glob-to-regexp')` or similar).",
      "max_score": 15
    },
    {
      "name": "Use extended option",
      "description": "The solution calls globToRegExp with the `extended: true` option to enable curly brace alternation syntax (e.g., `globToRegExp(pattern, {extended: true})`).",
      "max_score": 35
    },
    {
      "name": "Convert pattern to RegExp",
      "description": "The solution uses globToRegExp to convert the pattern string into a RegExp object that can be used for matching.",
      "max_score": 25
    },
    {
      "name": "Test against fileName",
      "description": "The solution uses the resulting RegExp object to test the fileName parameter (e.g., using `.test()` method) and returns the appropriate boolean result.",
      "max_score": 25
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/glob-to-regexp@0.4.x
tile.json