Skip to content

Non-alphanumeric characters are not highlighted. #6

@h1kb

Description

@h1kb

hello,

Non-alphanumeric characters are not highlighted in the project or context.
(e.g. É, й, 漢)

I think that it should be modified as follows.

-AppConstants.PROJECT_REGEX = new RegExp(/\B\+\w+/g);
-AppConstants.CONTEXT_REGEX = new RegExp(/\B\@\w+/g);
+AppConstants.PROJECT_REGEX = new RegExp(/\B\+[^+@\s]+/g);
+AppConstants.CONTEXT_REGEX = new RegExp(/\B\@[^+@\s]+/g);

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