Skip to content

Characters with accents disappear with setting "Diff On" and "Without Punctuation" #1

@lawrence-deepgram

Description

@lawrence-deepgram

Quick loom to explain the issue:
https://www.loom.com/share/9e24502606b94d80b18c8596e6877f6b?sid=1c65236a-0543-4ee7-9f6b-02d89d194551

To fix this, change line 97 in app/components/diff-viewer.tsx to:
ignorePunctuation ? text.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, "") : text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions