mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-23 04:18:30 +00:00
perf(novel-crawl): 去除小说简介前后空格
This commit is contained in:
parent
60dc28c5ed
commit
7955db0e3c
@ -110,7 +110,9 @@ public class CrawlParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//去除小说简介末尾冗余的小说名
|
// 去除小说简介前后空格
|
||||||
|
desc = desc.trim();
|
||||||
|
// 去除小说简介末尾冗余的小说名
|
||||||
if (desc.endsWith(bookName)) {
|
if (desc.endsWith(bookName)) {
|
||||||
desc = desc.substring(0, desc.length() - bookName.length());
|
desc = desc.substring(0, desc.length() - bookName.length());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user