Skip to content

Commit 754021f

Browse files
committed
refactor: fixup key hiding to be consistent
1 parent 3d914a8 commit 754021f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lambda-analytic-cloudfront/src/log.reader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const IsoDateHour = 13; // 2023-06-12:T01
5252
* Hide the full API key from the log analytics
5353
*/
5454
function hideApiKey(str: string): string {
55-
if (str.startsWith('d')) return 'd..' + str.slice(str.length - 6);
56-
if (str.startsWith('c')) return 'c..' + str.slice(str.length - 6);
55+
if (str.startsWith('d')) return 'd' + str.slice(str.length - 6);
56+
if (str.startsWith('c')) return 'c' + str.slice(str.length - 6);
5757
return str;
5858
}
5959

0 commit comments

Comments
 (0)