generated from rnentjes/kotlin-server-web-empty
Update project version to 1.0.3, fix string comparison logic in test function, and add a new test for link parsing.
This commit is contained in:
@@ -115,7 +115,7 @@ private val states = listOf(
|
||||
)
|
||||
|
||||
private fun String.test(index: Int, value: String): Boolean {
|
||||
return this.length > index + value.length && this.substring(index, index + value.length) == value
|
||||
return this.length >= index + value.length && this.substring(index, index + value.length) == value
|
||||
}
|
||||
|
||||
fun parseParagraph(text: String): MarkdownPart.Paragraph {
|
||||
|
||||
Reference in New Issue
Block a user