tessl install tessl/npm-glob-to-regexp@0.4.0Convert globs to regular expressions
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.15x
Baseline
Agent success rate without this tile
87%
{
"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
}
]
}