Fix mentions to handle non-latin names during import (#7078)

Signed-off-by: Anna Khismatullina <anna.khismatullina@gmail.com>
This commit is contained in:
Anna Khismatullina 2024-11-01 17:54:30 +07:00 committed by GitHub
parent 7710ff8fa1
commit c10b0a694a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ interface ImportIssueEx extends ImportIssue {
}
class ClickupMarkdownPreprocessor implements MarkdownPreprocessor {
private readonly MENTION_REGEX = /@([A-Za-z]+ [A-Za-z]+)/g
private readonly MENTION_REGEX = /@([\p{L}\p{M}]+ [\p{L}\p{M}]+)/gu
constructor (private readonly personsByName: Map<string, Ref<Person>>) {}
process (json: MarkupNode): MarkupNode {