From c63871d71b4090eb46e10c0ce3d4aa8e79b1b598 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:40:55 -0700 Subject: [PATCH] Fix storybook errors --- ts/util/privacy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/util/privacy.ts b/ts/util/privacy.ts index 0acd28ff32f6..2536cfc20144 100644 --- a/ts/util/privacy.ts +++ b/ts/util/privacy.ts @@ -24,7 +24,7 @@ export const _redactPath = (filePath: string): RedactFunction => { throw new TypeError("'filePath' must be a string"); } - const filePathPattern = exports._pathToRegExp(filePath); + const filePathPattern = _pathToRegExp(filePath); return (text: string): string => { if (!is.string(text)) { @@ -102,7 +102,7 @@ export const redactGroupIds = (text: string): string => { const createRedactSensitivePaths = ( paths: ReadonlyArray ): RedactFunction => { - return compose(paths.map(filePath => exports._redactPath(filePath))); + return compose(paths.map(filePath => _redactPath(filePath))); }; const sensitivePaths: Array = [];