UNPKG

rgex

Version:

A powerful, chainable regex builder platform with comprehensive validation utilities

18 lines 764 B
/** * Security Pattern Handlers * Handles password and security-related patterns */ import type { TextExtractionResult } from '../../types/index.js'; /** * Parses text for security-related patterns and returns a corresponding regex. * * It understands phrases like: * - "password no dictionary words" * - "strong password 8 characters" * * @param textForCapture The text to parse for security patterns. * @param testValue Optional string to test the generated regex against for confidence scoring. * @returns A `TextExtractionResult` object if a pattern is found, otherwise `null`. */ export declare function parseSecurityPatterns(textForCapture: string, testValue?: string): TextExtractionResult | null; //# sourceMappingURL=securityPatterns.d.ts.map