Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from jiangbianwanghai/master
Browse files Browse the repository at this point in the history
fixed a bug for get chinese length
  • Loading branch information
jc21 authored Apr 28, 2019
2 parents d081424 + 64da3e6 commit a9ff1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jc21/CliTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ protected function getFormattedRow($rowData, $columnLengths, $header = false) {
$color = $this->fields[$key]['color'];
}

$fieldLength = strlen($field) + 1;
$fieldLength = mb_strwidth($field) + 1;
$field = ' '.($this->getUseColors() ? $this->getColorFromName($color) : '').$field;
$response .= $field;

Expand Down

0 comments on commit a9ff1fc

Please sign in to comment.