mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-26 21:41:53 +07:00
19 lines
697 B
TypeScript
19 lines
697 B
TypeScript
/**
|
|
Apply transformations for atomic groups: `(?>…)`.
|
|
@param {string} expression
|
|
@param {PluginData} [data]
|
|
@returns {Required<PluginResult>}
|
|
*/
|
|
export function atomic(expression: string, data?: PluginData): Required<PluginResult>;
|
|
/**
|
|
Transform posessive quantifiers into atomic groups. The posessessive quantifiers are:
|
|
`?+`, `*+`, `++`, `{N}+`, `{N,}+`, `{N,N}+`.
|
|
This follows Java, PCRE, Perl, and Python.
|
|
Possessive quantifiers in Oniguruma and Onigmo are only: `?+`, `*+`, `++`.
|
|
@param {string} expression
|
|
@returns {PluginResult}
|
|
*/
|
|
export function possessive(expression: string): PluginResult;
|
|
import type { PluginData } from './regex.js';
|
|
import type { PluginResult } from './regex.js';
|