|
|
@ -126,8 +126,7 @@ class AnalyzeUrl( |
|
|
|
page?.let { |
|
|
|
page?.let { |
|
|
|
val matcher = pagePattern.matcher(ruleUrl) |
|
|
|
val matcher = pagePattern.matcher(ruleUrl) |
|
|
|
while (matcher.find()) { |
|
|
|
while (matcher.find()) { |
|
|
|
val pages = |
|
|
|
val pages = matcher.group(1).split(",") |
|
|
|
matcher.group(1).splitNotBlank(",") |
|
|
|
|
|
|
|
ruleUrl = if (page <= pages.size) { |
|
|
|
ruleUrl = if (page <= pages.size) { |
|
|
|
ruleUrl.replace(matcher.group(), pages[page - 1].trim { it <= ' ' }) |
|
|
|
ruleUrl.replace(matcher.group(), pages[page - 1].trim { it <= ' ' }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|