CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-escape-string-regexp

Escape RegExp special characters in strings for safe use in regular expressions

100

1.00x

Quality

Pending

Does it follow best practices?

Impact

100%

1.00x

Average score across 7 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

Evaluation results

100%

Text Pattern Matcher

Character class and mid-pattern insertion safety

Criteria
Without context
With context

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%

100%

Text Search Utility

Basic RegExp special character escaping

Criteria
Without context
With context

Package Import

100%

100%

Escape Search Term

100%

100%

RegExp Construction

100%

100%

Global Matching

100%

100%

Case Insensitivity

100%

100%

100%

Text Search with Unicode Pattern Safety

Cross-platform and regex engine compatibility

Criteria
Without context
With context

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%

100%

Dynamic Search Pattern Builder

Minimal escaping strategy

Criteria
Without context
With context

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%

100%

International Search Filter

Unicode and internationalization support

Criteria
Without context
With context

Uses escape-string-regexp

100%

100%

Unicode preservation

100%

100%

RegExp construction

100%

100%

Input validation

100%

100%

100%

Text Search Utility

Hyphen special handling for PCRE and Unicode compatibility

Criteria
Without context
With context

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%

100%

String Pattern Matcher

Type safety and input validation

Criteria
Without context
With context

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
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents