Skip to content

Commit

Permalink
Hide file extension in privacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
YusufYaser committed Jul 19, 2024
1 parent 16b57c3 commit 775f8d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const activity = async (
const replaceForPrivacyMode = async (text: string) => {
let replaced: string = text;
replaced = replaced.replaceAll("{file_name}", "a file");
replaced = replaced.replaceAll("{file_extension}", "");
replaced = replaced.replaceAll("{folder_and_file}", "a file in a folder");
replaced = replaced.replaceAll("{directory_name}", "a folder");
replaced = replaced.replaceAll("{full_directory_name}", "a folder");
Expand Down

0 comments on commit 775f8d3

Please sign in to comment.