CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-anymatch

Matches strings against configurable strings, globs, regular expressions, and/or functions

76

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "Evaluates how well the solution uses anymatch to build a reusable curried tester from mixed matchers and apply it for filtering and index lookup as described in the spec.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Curried creation",
      "description": "Uses anymatch(matchers, options?) exactly once to create a curried tester reused across calls instead of rebuilding inside loops or per invocation.",
      "max_score": 30
    },
    {
      "name": "Mixed matchers",
      "description": "Configures anymatch with the required mix of matcher types (glob string plus regex and predicate) so the curried tester honors all criteria in order.",
      "max_score": 20
    },
    {
      "name": "Return index",
      "description": "Invokes the curried tester with returnIndex=true to surface matcher positions, relying on anymatch's returnIndex behavior (index on hit, -1 on miss).",
      "max_score": 20
    },
    {
      "name": "Predicate forwarding",
      "description": "Passes array input through the curried tester so anymatch forwards trailing elements to predicate matchers for the extra checks defined in the spec.",
      "max_score": 15
    },
    {
      "name": "Filter reuse",
      "description": "Reuses the curried tester (e.g., as an Array#filter callback) for boolean matching without reconstructing matchers, reflecting anymatch's reusable function design.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-anymatch

tile.json