@shelltender/server
Version:
Server-side terminal session management for Shelltender
30 lines • 815 B
TypeScript
import { PatternConfig, PatternMatch } from '@shelltender/core';
import { PatternMatcher } from './PatternMatcher.js';
/**
* Pattern matcher for regular expressions
*/
export declare class RegexMatcher extends PatternMatcher {
private regex;
constructor(config: PatternConfig, id: string);
/**
* Create the RegExp instance from the pattern configuration
*/
private createRegex;
/**
* Build regex flags from configuration options
*/
private buildFlags;
/**
* Perform the regex match
*/
match(data: string, buffer: string): PatternMatch | null;
/**
* Extract named and numbered capture groups
*/
private extractGroups;
/**
* Validate the regex pattern
*/
validate(): void;
}
//# sourceMappingURL=RegexMatcher.d.ts.map