method ReleaseManager.prototype.buildSafeReplacement
ReleaseManager.prototype.buildSafeReplacement(
pattern: RegExp,
newValue: string,
): string

Build safe replacement string for regex patterns

Parameters

pattern: RegExp
  • The regex pattern being used
newValue: string
  • The new value to insert

Return Type

string

Safe replacement string

Usage

import { ReleaseManager } from ".";