Convert globs to regular expressions
Overall
score
100%
Special character escaping
Uses glob-to-regexp
100%
100%
Basic conversion
100%
100%
Dot escaping
100%
100%
Dollar sign escaping
100%
100%
Parentheses escaping
100%
100%
Slash escaping
100%
100%
Basic wildcard matching with *
Imports glob-to-regexp
100%
100%
Uses globToRegExp function
100%
100%
Tests paths with regex
100%
100%
Correct pattern conversion
100%
100%
Functional correctness
100%
100%
Character range matching with [] (extended mode)
Import glob-to-regexp
0%
100%
Extended mode enabled
0%
100%
Pattern conversion
0%
100%
Regex testing
100%
100%
Correct return values
100%
100%
Handle all test cases
100%
100%
Anchored vs global matching (flags option)
Import glob-to-regexp
100%
100%
Exact matching implementation
100%
100%
Substring matching implementation
40%
100%
RegExp usage
100%
100%
Filter function correctness
100%
100%
Combining extended mode and globstar
Imports glob-to-regexp
100%
100%
Calls globToRegExp function
100%
100%
Enables globstar option
100%
100%
Enables extended option
100%
100%
Combines both options
100%
100%
Tests against file paths
100%
100%
Single character matching with ? (extended mode)
Import glob-to-regexp
100%
100%
Use globToRegExp function
100%
100%
Enable extended mode
100%
100%
Test against filename
100%
100%
Return boolean result
100%
100%
Globstar ** for path hierarchy matching
Imports glob-to-regexp
100%
100%
Enables extended mode
100%
100%
Calls globToRegExp function
100%
100%
Uses returned RegExp
100%
100%
Correct return value
100%
100%
Alternative/group matching with {} (extended mode)
Import glob-to-regexp
100%
100%
Use extended option
100%
100%
Convert pattern to RegExp
100%
100%
Test against fileName
100%
100%
Case-insensitive and other RegExp flags
Import glob-to-regexp
100%
100%
Use flags option
100%
100%
Case-insensitive flag
100%
100%
Global/unanchored flag
0%
100%
Combine flags
0%
100%
Install with Tessl CLI
npx tessl i tessl/npm-glob-to-regexp