latex update
This commit is contained in:
@@ -2278,8 +2278,8 @@ class Production extends Base
|
|||||||
return jsonError($rule->getError());
|
return jsonError($rule->getError());
|
||||||
}
|
}
|
||||||
$info = $this->article_main_obj->where("am_id",$data['id'])->find();
|
$info = $this->article_main_obj->where("am_id",$data['id'])->find();
|
||||||
if(isset($data["code"])){
|
if(isset($data["content"])){
|
||||||
$content = $data['code'];
|
$content = $data['content'];
|
||||||
}else{
|
}else{
|
||||||
$content = $info['content'];
|
$content = $info['content'];
|
||||||
}
|
}
|
||||||
@@ -2644,7 +2644,7 @@ class Production extends Base
|
|||||||
* @return string 标签名或'no'
|
* @return string 标签名或'no'
|
||||||
*/
|
*/
|
||||||
private function determineNextTag($content) {
|
private function determineNextTag($content) {
|
||||||
$tagPattern = '/<(' . implode('|', $this->supportedTags) . ')>/i';
|
$tagPattern = '/<(' . implode('|', $this->supportedTags) . ')\b[^>]*>/i';
|
||||||
if (preg_match($tagPattern, $content, $matches)) {
|
if (preg_match($tagPattern, $content, $matches)) {
|
||||||
return $matches[1];
|
return $matches[1];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user