Skip to content

Commit

Permalink
fix preg_splite may cause some chinese character error
Browse files Browse the repository at this point in the history
  • Loading branch information
CandySunPlus committed Nov 6, 2013
1 parent 0ef94f0 commit 94111e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeSniffer/CommentParser/AbstractParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private function _parse($comment)
// spaces as well as separate tokens.
$flags = (PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$words = preg_split(
'|(\s+)|',
'|(\s+)|u',
$line.$this->phpcsFile->eolChar,
-1,
$flags
Expand Down

0 comments on commit 94111e3

Please sign in to comment.