regex
Version:
Regex template tag with extended syntax, context-aware interpolation, and always-on best practices
9 lines (8 loc) • 317 B
TypeScript
/**
Applies flag v rules when using flag u, for forward compatibility.
Assumes flag u and doesn't worry about syntax errors that are caught by it.
@param {string} expression
@returns {PluginResult}
*/
export function backcompatPlugin(expression: string): PluginResult;
import type { PluginResult } from './regex.js';