We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e968c3 + 3a6ab4f commit 1400adbCopy full SHA for 1400adb
aztec/src/main/kotlin/org/wordpress/aztec/AztecParser.kt
@@ -335,8 +335,9 @@ class AztecParser @JvmOverloads constructor(val plugins: List<IAztecPlugin> = li
335
do {
336
lastIndex = text.lastIndexOf(Constants.ZWJ_CHAR, lastIndex)
337
if (lastIndex == text.length - 1) {
338
- // ZWJ at the end of text will serve as end-of-text marker so, let it be and finish.
339
- return
+ // ZWJ at the end of text will serve as end-of-text marker so, let it be and continue cleaning up ZWJs
+ lastIndex--
340
+ continue
341
}
342
343
if (lastIndex > -1) {
0 commit comments