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

{
  "context": "This criteria evaluates how effectively the engineer uses the glob-to-regexp package to implement file path matching with basic wildcard (*) support. The focus is on proper usage of the globToRegExp function to convert glob patterns into regular expressions for pattern matching.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports glob-to-regexp",
      "description": "The solution imports or requires the glob-to-regexp package using require() or import statement",
      "max_score": 15
    },
    {
      "name": "Uses globToRegExp function",
      "description": "The solution calls the globToRegExp function to convert the pattern string into a regular expression",
      "max_score": 30
    },
    {
      "name": "Tests paths with regex",
      "description": "The solution uses the RegExp.test() method or similar regex matching to check if each path matches the pattern",
      "max_score": 25
    },
    {
      "name": "Correct pattern conversion",
      "description": "The solution passes the pattern string directly to globToRegExp without unnecessary modifications, allowing the package to handle the * wildcard conversion",
      "max_score": 20
    },
    {
      "name": "Functional correctness",
      "description": "The solution correctly filters paths and returns only those matching the pattern, preserving order and handling edge cases like no matches",
      "max_score": 10
    }
  ]
}

Version

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