CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-glob-to-regexp

Convert globs to regular expressions

100

1.14x

Quality

Pending

Does it follow best practices?

Impact

100%

1.14x

Average score across 9 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

Evaluation results

100%

File Path Pattern Matcher

Special character escaping

Criteria
Without context
With context

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%

100%

File Path Matcher

Basic wildcard matching with *

Criteria
Without context
With context

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%

100%

55%

File Validator with Pattern Matching

Character range matching with [] (extended mode)

Criteria
Without context
With context

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%

100%

15%

URL Path Validator

Anchored vs global matching (flags option)

Criteria
Without context
With context

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%

100%

File Pattern Matcher

Combining extended mode and globstar

Criteria
Without context
With context

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%

100%

File Name Validator

Single character matching with ? (extended mode)

Criteria
Without context
With context

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%

100%

Pattern Validator

Globstar ** for path hierarchy matching

Criteria
Without context
With context

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%

100%

File Type Validator

Alternative/group matching with {} (extended mode)

Criteria
Without context
With context

Import glob-to-regexp

100%

100%

Use extended option

100%

100%

Convert pattern to RegExp

100%

100%

Test against fileName

100%

100%

100%

45%

File Filter System

Case-insensitive and other RegExp flags

Criteria
Without context
With context

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%

Evaluated
Agent
Codex
Model
Unknown

Table of Contents