Skip to content

Replace str_split with preg_split to properly handle multibyte characters  #125

Description

@sam2kb

SequenceMatcher.php : 138

if (!is_array($version1)) {
    $version1 = str_split($version1);
}
if (!is_array($version1)) {
    $version1 = preg_split("//u", $a);
}

See here for details
https://www.php.net/manual/en/function.preg-split.php#124158

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions