Redacts occurrences of the user's home directory path to ~ across different casing and path separator variations, without truncating or rewriting keyword assignments.
~
Text potentially containing local home directory paths.
Text with home directory paths replaced by ~.
Redacts occurrences of the user's home directory path to
~across different casing and path separator variations, without truncating or rewriting keyword assignments.