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:
2025-12-14 15:50:22 +01:00
parent bc7cd5fb97
commit 6d7d05a0d4
3 changed files with 14 additions and 2 deletions

View File

@@ -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 {