UNPKG

redos-detector

Version:

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

9 lines (8 loc) 386 B
import { OurRange } from './our-range'; export declare function toCodePoint(input: string): number | null; export declare function toUpperCaseCodePoint(codePoint: number): number; export declare function buildCodePointRanges({ caseInsensitive, highCodePoint, lowCodePoint, }: { caseInsensitive: boolean; highCodePoint: number; lowCodePoint: number; }): readonly OurRange[];