Skip to content

Commit

Permalink
fix: agora sim, handles funcionando
Browse files Browse the repository at this point in the history
  • Loading branch information
hdoro committed Dec 24, 2024
1 parent e5fad7c commit 19f47e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/actions/createNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ function getTransaction(input: NotesForDB, inputClient: Client) {
note.handle ||
getStandardHandle(
tiptapJSONtoPlainText(note.title)
// Remove all non-alphanumeric characters to prevent handles with "quot", "percent", etc.
?.replace(/[^\w\d ]/g, '') || '',
?.replace(/&/g, 'e')
// Remove common escaped HTML entities
?.replace(
/"|<|>| |'|'|¢|£|¥|€|©|®/g,
'',
) || '',
note.id,
),
title: note.title,
Expand Down

0 comments on commit 19f47e6

Please sign in to comment.