|
@@ -299,8 +299,11 @@ if (!empty($keyword)&&(strpos($PathInfo, '/search') === 0))
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- if (preg_match('/^([^?.]+[?.])/', $contentWithoutNumber, $matches)) {
|
|
|
+
|
|
|
+ $contentWithoutNumber = str_replace(['?', '。'], ['?', '.'], $contentWithoutNumber);
|
|
|
+
|
|
|
+
|
|
|
+ if (preg_match('/^([^?.]+[?.])/', $contentWithoutNumber, $matches)) {
|
|
|
$question = trim($matches[0]);
|
|
|
$answer = trim(substr($contentWithoutNumber, strlen($matches[0])));
|
|
|
} else {
|