Skip to content

Emote-Side-Panel removes non-English chat #339

@DavisGoglin

Description

@DavisGoglin

The filter for blank messages token.type === 'text' && /^(\s|[^\x20-\x7E])+$/g.test(token.text) only checks for ASCII characters.

This is a problem if the message is completely in Japanese for example:

console.log( /^(\s|[^\x20-\x7E])+$/g.test("test") ) // false

console.log( /^(\s|[^\x20-\x7E])+$/g.test("大P") ) //false

console.log( /^(\s|[^\x20-\x7E])+$/g.test("真ドリームコンボ") ) // true

and silently removes these messages unless "Keep messages" is checked.

(token.type === 'text' && /^(\s|[^\x20-\x7E])+$/g.test(token.text))) continue;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions