Skip to content

Commit dc989e6

Browse files
committed
fix: classes with modifiers and postfix causing string overflow
1 parent 1976dd0 commit dc989e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/twmerge/modifier-utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func MakeSplitModifiers(conf *TwMergeConfig) SplitModifiersFn {
4646
baseClass = baseClassWithImportant
4747
}
4848

49-
// fix case where there is modifier & maybePostfix which causes maybePostfix to be beyond size of baseClass
49+
// fix case where there is modifier & maybePostfix which causes maybePostfix to be beyond size of baseClass!
5050
if maybePostfixModPosition != -1 && maybePostfixModPosition > modifierStart {
5151
maybePostfixModPosition -= modifierStart
5252
}

0 commit comments

Comments
 (0)