full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,28 +1,31 @@
export const emulationGroupMarker: "$E$";
/**
Works the same as JavaScript's native `RegExp` constructor in all contexts, but automatically
adjusts matches and subpattern indices (with flag `d`) to account for injected emulation groups.
adjusts subpattern matches and indices (with flag `d`) to account for captures added as part of
emulating extended syntax.
*/
export class RegExpSubclass extends RegExp {
/**
@param {string | RegExpSubclass} expression
@param {string} [flags]
@param {{useEmulationGroups: boolean;}} [options]
*/
constructor(expression: string | RegExpSubclass, flags?: string, options?: {
useEmulationGroups: boolean;
@overload
@param {string} expression
@param {string} [flags]
@param {{
hiddenCaptures?: Array<number>;
}} [options]
*/
constructor(expression: string, flags?: string, options?: {
hiddenCaptures?: Array<number>;
});
/**
@private
@type {Array<{
exclude: boolean;
transfer?: number;
}> | undefined}
*/
private _captureMap;
@overload
@param {RegExpSubclass} expression
@param {string} [flags]
*/
constructor(expression: RegExpSubclass, flags?: string);
/**
@private
@type {Record<number, string> | undefined}
@type {Map<number, {
hidden: true;
}>}
*/
private _namesByIndex;
private _captureMap;
}