Skip to content

Replace str_split with preg_split to properly handle multibyte characters  #125

@sam2kb

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions