@@ -146,7 +146,8 @@ const getTitleByHtmlStr = (str = '') => {
let tag_end = '</title>'
let index1 = str.indexOf(tag_start) + tag_start.length;
let index2 = str.indexOf(tag_end);
- if (index1 < 0 || index2 < 0) {
+
+ if (index1 < tag_start.length || index2 < 0) {
return '';
}