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