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 well the engineer uses the glob-to-regexp package to implement single-character wildcard pattern matching. The focus is on proper usage of the extended mode option and the globToRegExp function.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import glob-to-regexp",
"description": "The solution imports or requires the glob-to-regexp package correctly (e.g., const globToRegExp = require('glob-to-regexp') or similar)",
"max_score": 10
},
{
"name": "Use globToRegExp function",
"description": "The solution calls the globToRegExp function with the pattern parameter as the first argument",
"max_score": 25
},
{
"name": "Enable extended mode",
"description": "The solution passes { extended: true } as the options parameter to globToRegExp to enable single-character wildcard matching with '?'",
"max_score": 35
},
{
"name": "Test against filename",
"description": "The solution uses the RegExp returned by globToRegExp to test the filename parameter (e.g., using .test() method or similar)",
"max_score": 20
},
{
"name": "Return boolean result",
"description": "The solution returns a boolean value indicating whether the filename matches the pattern",
"max_score": 10
}
]
}