File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/lau/NovelDL Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import java.lang.NullPointerException
11
11
fun readNovel (plain : String ): String {
12
12
// Get the main part of the novel
13
13
val novelStart: Int = plain.indexOf(" <divid=\" content\" " )
14
- if (novelStart == - 1 ) throw NullPointerException (" Not novel" );
14
+ if (novelStart == - 1 ) throw NullPointerException (" Not novel" )
15
15
var novel: String = plain.substring(
16
16
plain.indexOf(' >' , novelStart) + 1 ,
17
17
plain.indexOf(" </div>" , novelStart)
@@ -24,7 +24,7 @@ fun readNovel(plain: String): String {
24
24
novel = Regex (" "" ).replace(novel, " \" " )
25
25
26
26
// Process "</br>"s
27
- novel = Regex (" <br/>" ).replace(novel, " \n " )
27
+ novel = Regex (" <br/? >" ).replace(novel, " \n " )
28
28
29
29
// Remove "<a href=url></a>"s
30
30
novel = removePartsFromString(novel, " <ahref" , " </a>" , " " )
You can’t perform that action at this time.
0 commit comments