Browse Source

Merge pull request #385 from Liming-Wang/patch-1

Update FromCommentsController.class.php
star7th 7 years ago
parent
commit
5711a95ed5

+ 1 - 1
server/Application/Api/Controller/FromCommentsController.class.php

@@ -20,7 +20,7 @@ class FromCommentsController extends BaseController {
             return false;
         }
 
-        $p = '/\/\*\*([\s\S])*?\*\//' ;
+        $p = "|/\*\*([\s\S]*)\*/|U";
         preg_match_all($p, $content , $matches) ;
         if ($matches && $matches[0]) {
             foreach ($matches[0] as $key => $value) {