Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/splitProcessor"

Index

Functions

Functions

splitProcessor

  • splitProcessor(text: string, transform: (i: string) => string, splitter: RegExp): string
  • Perform transformations on input string, skipping sections that match the regular expression.

    Parameters

    • text: string

      input string

    • transform: (i: string) => string

      function that takes non-skipped sections as input and performs transformation

        • (i: string): string
        • Parameters

          • i: string

          Returns string

    • splitter: RegExp

      a regular expression to split the string

    Returns string

    transformed string, stitched back together

Generated using TypeDoc