Skip to content

Commit

Permalink
Fix fzaninotto#1305 realText in some cases breaks last character
Browse files Browse the repository at this point in the history
  • Loading branch information
iamraccoon committed Oct 18, 2017
1 parent 465d5f2 commit 36713e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 47 deletions.
7 changes: 7 additions & 0 deletions src/Faker/Provider/ru_RU/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

class Text extends \Faker\Provider\Text
{
public function realText($maxNbChars = 200, $indexSize = 2)
{
$realText = parent::realText($maxNbChars, $indexSize);

return iconv('UTF-8', 'UTF-8//IGNORE', $realText);
}

/**
* From ru.wikisource.org
*
Expand Down
47 changes: 0 additions & 47 deletions test/Faker/Provider/Car.php

This file was deleted.

0 comments on commit 36713e4

Please sign in to comment.