Convert globs to regular expressions
100
Pending
Does it follow best practices?
Impact
100%
1.14xAverage score across 9 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9