Skip to content

problem with count  #2

Description

@hooman-mirghasemi

it can not count string like :
"سلام this is سلام"
and only count english word when string have tow language charset.
it is better to change getLengh method like:
public function getLength()
{
if (null === $this->_length) {
$this->_length = preg_match_all('/\pL+/u',$this->getSource());
}
return $this->_length;
}

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