Replace \N with .

Older PCRE versions (coming with PHP 5.2) don't support \N yet.
This commit is contained in:
nikic 2012-05-11 20:38:05 +02:00
parent 93392c82e0
commit 10fc22f518

View File

@ -55,7 +55,7 @@ class PHPParser_Comment
if (false === strpos($text, "\n")) { if (false === strpos($text, "\n")) {
// Single line comments don't need further processing // Single line comments don't need further processing
return $text; return $text;
} elseif (preg_match('((*BSR_ANYCRLF)(*ANYCRLF)^\N*(?:\R\s+\*\N*)+$)', $text)) { } elseif (preg_match('((*BSR_ANYCRLF)(*ANYCRLF)^.*(?:\R\s+\*.*)+$)', $text)) {
// Multi line comment of the type // Multi line comment of the type
// //
// /* // /*