Skip to content

Commit

Permalink
Merge pull request #330 from YusufYaser/patch-1
Browse files Browse the repository at this point in the history
Hide file extension in privacy mode
  • Loading branch information
xhayper committed Aug 21, 2024
2 parents 16b57c3 + 775f8d3 commit 265f1a2
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 265f1a2

Please sign in to comment.