Regular expression for matching Unix shebang lines at the beginning of files
88
Shebang line extraction (full line with #!)
Imports shebang-regex
100%
100%
Uses exec() method
0%
100%
Extracts full line
0%
100%
Handles null results
100%
100%
Returns correct value
100%
100%
Shebang detection (test for presence)
Package import
0%
66%
test() method usage
50%
100%
Correct return type
100%
100%
Array filtering implementation
100%
100%
Proper content access
100%
100%
Start-of-string anchoring behavior understanding
Imports shebang-regex
100%
100%
Uses .test() method
0%
100%
Relies on anchoring
0%
100%
Returns boolean correctly
50%
100%
Interpreter path extraction (without #! prefix)
Package import
100%
100%
exec() method usage
0%
100%
Capture group extraction
100%
100%
Null/undefined handling
100%
100%
Correct return values
100%
100%
Edge cases and limitations (whitespace, line positioning, validation)
Import shebang-regex
100%
100%
Use .test() method
0%
100%
Understand ^ anchor
26%
100%
Detect misplaced shebangs
100%
100%
Handle all categories
100%
100%
Regex capture group manipulation and parsing
Import shebang-regex
100%
100%
Use exec() method
0%
100%
Access full shebang
100%
100%
Access interpreter path
0%
100%
Handle null results
100%
100%
Parse interpreter name
100%
100%
Null safety and error handling for non-matching strings
Uses shebang-regex package
100%
0%
Uses exec() method
0%
100%
Accesses capture group
100%
100%
Null safety pattern
100%
100%
Uses test() method
0%
0%
Greedy capture pattern for complex interpreter specifications
Uses shebangRegex
50%
100%
Uses test method
0%
0%
Uses exec method
0%
100%
Extracts full shebang
30%
100%
Extracts interpreter path
100%
100%
Parses greedy capture
100%
100%
Universal interpreter support (any interpreter type)
Import shebang-regex
100%
80%
Use test() method
100%
0%
Use exec() method
0%
33%
Extract full shebang
66%
33%
Extract interpreter path
75%
25%
Handle null results
100%
66%
Support multiple interpreters
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-shebang-regex