CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-glob-to-regexp

Convert globs to regular expressions

Overall
score

100%

Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how effectively the engineer uses the glob-to-regexp package to handle special character escaping when converting file path patterns to regular expressions. The focus is on proper usage of the package's automatic escaping features for regex metacharacters.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses glob-to-regexp",
      "description": "The solution imports and uses the glob-to-regexp package (typically via require('glob-to-regexp') or similar)",
      "max_score": 20
    },
    {
      "name": "Basic conversion",
      "description": "Correctly calls glob-to-regexp with the pattern string as the first argument to convert glob patterns to RegExp objects",
      "max_score": 20
    },
    {
      "name": "Dot escaping",
      "description": "Relies on glob-to-regexp's automatic escaping to handle dots (.) in patterns like '*.min.js' so they match literal dots rather than any character",
      "max_score": 15
    },
    {
      "name": "Dollar sign escaping",
      "description": "Relies on glob-to-regexp's automatic escaping to handle dollar signs ($) in patterns like 'src/$.js' so they match literal dollar signs",
      "max_score": 15
    },
    {
      "name": "Parentheses escaping",
      "description": "Relies on glob-to-regexp's automatic escaping to handle parentheses ( ) in patterns like 'lib/util(v2).js' so they match literal parentheses",
      "max_score": 15
    },
    {
      "name": "Slash escaping",
      "description": "Relies on glob-to-regexp's automatic escaping to handle forward slashes (/) in patterns so they match literal slashes in paths",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-glob-to-regexp

tile.json