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

{
  "context": "This criteria evaluates how well the engineer uses picomatch's custom format function capability to normalize path prefixes before pattern matching. The focus is on proper usage of the format option in picomatch to preprocess input strings.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses picomatch function",
      "description": "The solution uses the picomatch() function (or picomatch.isMatch()) to create a matcher or perform matching operations",
      "max_score": 20
    },
    {
      "name": "Implements format option",
      "description": "The solution passes a format option/callback to picomatch that preprocesses the input paths before matching",
      "max_score": 35
    },
    {
      "name": "Strips ./ prefix",
      "description": "The format function correctly removes the './' prefix from paths (e.g., './index.js' becomes 'index.js')",
      "max_score": 15
    },
    {
      "name": "Strips ~/ prefix",
      "description": "The format function correctly removes the '~/' prefix from paths (e.g., '~/src/file.js' becomes 'src/file.js')",
      "max_score": 15
    },
    {
      "name": "Preserves unprefixed paths",
      "description": "The format function leaves paths without './' or '~/' prefixes unchanged, allowing them to be matched as-is",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-picomatch

tile.json