CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-picomatch

Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.

83

1.45x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses picomatch's pattern compilation capabilities, specifically the makeRe() function, to convert glob patterns into regular expressions for path validation. The focus is on proper usage of picomatch's API for creating reusable matchers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses makeRe()",
      "description": "Correctly uses picomatch.makeRe() to compile glob patterns into regular expressions",
      "max_score": 35
    },
    {
      "name": "Regex testing",
      "description": "Properly tests input paths against the compiled regex objects returned by makeRe()",
      "max_score": 20
    },
    {
      "name": "Options handling",
      "description": "Correctly passes options (like nocase) to makeRe() for case-insensitive matching",
      "max_score": 20
    },
    {
      "name": "Multiple patterns",
      "description": "Handles array of patterns by creating multiple regex objects or combining patterns appropriately",
      "max_score": 15
    },
    {
      "name": "Validator structure",
      "description": "Returns an object with a test method that encapsulates the compiled regex for reusable matching",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-picomatch

tile.json