• Replace number patterns.

    Parameters

    • regex: string | RegExp | AstRegExp

      Target regex.

    • numbers: Expression[]

      Number patterns to paste.

    • Optional numberPatternsCount: number

      Number patterns count to replace.

    Returns AstRegExp

    Regex with replaced number patterns.

  • Type Parameters

    • T extends AstNode

    Parameters

    • regex: T
    • numbers: Expression[]
    • Optional numberPatternsCount: number

    Returns T

Generated using TypeDoc