Skip to content

Commit e8e5424

Browse files
Refactor Parser to apply unconditionalModifications after processing currentNumberSpan.
1 parent abdf1d4 commit e8e5424

File tree

1 file changed

+2
-0
lines changed
  • core/common/src/internal/format/parser

1 file changed

+2
-0
lines changed

core/common/src/internal/format/parser/Parser.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ internal fun <T> List<ParserStructure<T>>.concat(): ParserStructure<T> {
9191
if (currentNumberSpan != null) {
9292
newOperations.add(NumberSpanParserOperation(currentNumberSpan))
9393
currentNumberSpan = null
94+
newOperations.addAll(unconditionalModifications)
95+
unconditionalModifications.clear()
9496
}
9597
newOperations.add(op)
9698
}

0 commit comments

Comments
 (0)