Crate korrektor_utils

source ·

Functions

  • Replaces constants represented as a tuple array. Each first element of the tuple replaces each second element with the help of the regex crate.
  • Removes all brackets that wrap special text protected from korrektor operations.
  • Wraps all regex matches of pcre crate in 〈〉 brackets in order to preserve some text from some operations in korrektor.
  • Wrap all matches in the given text with provided pattern that must be a valid regex.