正在显示
1 个修改的文件
包含
0 行增加
和
1 行删除
| @@ -158,7 +158,6 @@ class TranslateLogic extends BaseLogic | @@ -158,7 +158,6 @@ class TranslateLogic extends BaseLogic | ||
| 158 | } | 158 | } |
| 159 | $contentData = array_values($contentData); | 159 | $contentData = array_values($contentData); |
| 160 | $pattern = '/<meta\s+[^>]*name=[\'"](keywords|description)[\'"][^>]*content=[\'"]([^\'"]+)[\'"]/i'; // 匹配 name 为 "keywords" 或 "description" 的 meta 标签的正则表达式 | 160 | $pattern = '/<meta\s+[^>]*name=[\'"](keywords|description)[\'"][^>]*content=[\'"]([^\'"]+)[\'"]/i'; // 匹配 name 为 "keywords" 或 "description" 的 meta 标签的正则表达式 |
| 161 | - | ||
| 162 | $matches1 = array(); | 161 | $matches1 = array(); |
| 163 | preg_match_all($pattern, $strippedContent, $matches1); | 162 | preg_match_all($pattern, $strippedContent, $matches1); |
| 164 | $metaData = array(); | 163 | $metaData = array(); |
-
请 注册 或 登录 后发表评论