UNPKG

regex

Version:

Regex template tag with extended syntax, context-aware interpolation, and always-on best practices

12 lines (11 loc) 538 B
/** Remove `(?:)` token separators (most likely added by flag x) in cases where it's safe to do so. @param {string} expression @returns {PluginResult} */ export function clean(expression: string): PluginResult; export function flagXPreprocessor(value: import("./regex.js").InterpolatedValue, runningContext: import("./utils.js").RunningContext, options: Required<import("./regex.js").RegexTagOptions>): { transformed: string; runningContext: import("./utils.js").RunningContext; }; import type { PluginResult } from './regex.js';