Skip to content

scrubBugReportText

Masks token shapes and the given folder paths in a bug report’s text. A token becomes [redacted <kind>]; a path becomes its placeholder, whichever separator or letter case the text writes it with.

Import:

import { scrubBugReportText } from '@mnaoumov/obsidian-lib/bug-report-scrubber';

Signature:

function scrubBugReportText(text: string, options: ScrubBugReportTextOptions): string

Parameters:

Parameter Type Description
text string The text.
options ScrubBugReportTextOptions The options.

Returns: string — The scrubbed text.


Links to this page: