Escape RegExp special characters in strings for safe use in regular expressions
Overall
score
100%
Evaluation — 100%
↑ 1.00xAgent success when using this tile
Character class and mid-pattern insertion safety
Uses escape-string-regexp
100%
100%
Escapes in findLiteralPattern
100%
100%
Constructs valid regex
100%
100%
Handles Unicode correctly
100%
100%
Escapes in buildCharacterClassPattern
100%
100%
Handles hyphen escaping
100%
100%
Basic RegExp special character escaping
Package Import
100%
100%
Escape Search Term
100%
100%
RegExp Construction
100%
100%
Global Matching
100%
100%
Case Insensitivity
100%
100%
Cross-platform and regex engine compatibility
Import escape-string-regexp
100%
100%
Escape search term
100%
100%
Construct regex pattern
100%
100%
Unicode flag support
100%
100%
Case-insensitive flag
100%
100%
Global flag usage
100%
100%
Extract matches correctly
100%
100%
Minimal escaping strategy
Package import
100%
100%
Core function usage
100%
100%
Minimal escaping verification
100%
100%
Pattern string usage
100%
100%
Error handling delegation
100%
100%
Test implementation
100%
100%
Unicode and internationalization support
Uses escape-string-regexp
100%
100%
Unicode preservation
100%
100%
RegExp construction
100%
100%
Input validation
100%
100%
Hyphen special handling for PCRE and Unicode compatibility
Import escape-string-regexp
100%
100%
Use escapeStringRegexp
100%
100%
Construct RegExp correctly
100%
100%
Handle case-insensitive search
100%
100%
Test hyphen handling
100%
100%
Implement both functions
100%
100%
Type safety and input validation
Type validation implementation
100%
100%
TypeError for invalid inputs
100%
100%
Using escape-string-regexp
100%
100%
Correct return value
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-escape-string-regexp@5.0.0