Skip to content

Commit

Permalink
fix name bug (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROOKIE20570 authored and overtrue committed Sep 20, 2019
1 parent e9e7e8e commit 94fdb3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pinyin.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public function convert($string, $option = PINYIN_DEFAULT)
*/
public function name($stringName, $option = PINYIN_NAME)
{
$option = $option | PINYIN_NAME;

$pinyin = $this->romanize($stringName, $option);

return $this->splitWords($pinyin, $option);
Expand Down

0 comments on commit 94fdb3e

Please sign in to comment.