mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进comment方法解析
This commit is contained in:
@@ -625,6 +625,9 @@ abstract class Builder
|
|||||||
*/
|
*/
|
||||||
protected function parseComment($comment)
|
protected function parseComment($comment)
|
||||||
{
|
{
|
||||||
|
if (false !== strpos($comment, '*/')) {
|
||||||
|
$comment = strstr($coment, '*/', true);
|
||||||
|
}
|
||||||
return !empty($comment) ? ' /* ' . $comment . ' */' : '';
|
return !empty($comment) ? ' /* ' . $comment . ' */' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user