Skip to content

Commit

Permalink
support greek letters
Browse files Browse the repository at this point in the history
pangu.py  has Fixed. see: vinta/pangu.py#10
  • Loading branch information
jxlwqq committed Jul 26, 2018
1 parent fc7d1c5 commit edc639f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pangu.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ function pangu($text) {
),

'cjk_operator_ans' => array(
'([' . $cjk . '])([A-Za-z0-9])([\+\-\*\/=&\\|<>])',
'([' . $cjk . '])([A-Za-zΑ-Ωα-ω0-9])([\+\-\*\/=&\\|<>])',
'$1 $2 $3'
),

'ans_operator_cjk' => array(
'([\+\-\*\/=&\\|<>])([A-Za-z0-9])([' . $cjk . '])',
'([\+\-\*\/=&\\|<>])([A-Za-zΑ-Ωα-ω0-9])([' . $cjk . '])',
'$1 $2 $3'
),

Expand Down Expand Up @@ -80,12 +80,12 @@ function pangu($text) {
),

'cjk_ans' => array(
'([' . $cjk . '])([A-Za-z0-9`@&%\=\$\^\*\-\+\\/|\\\])',
'([' . $cjk . '])([A-Za-zΑ-Ωα-ω0-9`@&%\=\$\^\*\-\+\\/|\\\])',
'$1 $2'
),

'ans_cjk' => array(
'([A-Za-z0-9`~!%&=;\|\,\.\:\?\$\^\*\-\+\/\\\])([' . $cjk . '])',
'([A-Za-zΑ-Ωα-ω0-9`~!%&=;\|\,\.\:\?\$\^\*\-\+\/\\\])([' . $cjk . '])',
'$1 $2'
)
);
Expand Down

0 comments on commit edc639f

Please sign in to comment.