Skip to content

Double-clicking a word containing non-ASCII letters doesn't work properly in CodeArea #1138

@alesp

Description

@alesp

Double-clicking words containing non-ASCII letters doesn't work properly in CodeArea.

For example, German word "zurück": The "ü" acts like a word break here. Double clicking it at the begginning will select "zur". Double clicking it at the end will select "ck".

One way to fix this is to add Pattern.UNICODE_CHARACTER_CLASS to WORD_PATTERN definition in CodeArea.

protected Pattern WORD_PATTERN = Pattern.compile( "\\w+", Pattern.UNICODE_CHARACTER_CLASS );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions