Skip to content

The Grapheme polyfill is failing tests when using \X as regex for clusters #511

Open
@stof

Description

@stof

See CI jobs for PHP 7.3+ which are failing a test when using the polyfill:

$this->assertSame('', grapheme_substr('☢☎❄', 1, 1));

\X does not split those as separate grapheme clusters.

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