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

{
  "context": "This criteria evaluates how well the engineer uses the glob-to-regexp package's character range matching feature ([] syntax with extended mode) to implement pattern validation. The focus is on correct usage of the package API, particularly enabling extended mode and utilizing character class patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports glob-to-regexp",
      "description": "Code imports or requires the glob-to-regexp package (e.g., `const globToRegExp = require('glob-to-regexp')` or `import globToRegExp from 'glob-to-regexp'`)",
      "max_score": 10
    },
    {
      "name": "Enables extended mode",
      "description": "Code passes the `{extended: true}` option when calling globToRegExp to enable character range matching with [] syntax",
      "max_score": 30
    },
    {
      "name": "Calls globToRegExp function",
      "description": "Code invokes the globToRegExp function with the pattern parameter to convert glob patterns to RegExp objects",
      "max_score": 20
    },
    {
      "name": "Uses returned RegExp",
      "description": "Code uses the RegExp object returned by globToRegExp to test strings (e.g., using .test() method or other regex matching operations)",
      "max_score": 20
    },
    {
      "name": "Correct return value",
      "description": "Function returns boolean values (true/false) based on whether the test string matches the pattern, as specified in the API",
      "max_score": 20
    }
  ]
}

Version

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