Skip to content

Commit

Permalink
fixed caret position
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Nov 18, 2023
1 parent d575cc5 commit 26fce4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class VirtualDomStyle(private val element: IVirtualDom.Element) {
fun toMap(): Map<String, String> = (element.getAttribute("style") ?: "")
.split(';')
.map { it.split(':', limit = 2) }
.filter { it.size != 2 }
.filter { it.size == 2 }
.associate { it[0].trim() to it[1].trim() }
operator fun get(name: String): String? = toMap()[name]
operator fun set(name: String, value: String?) = toMap().toMutableMap()
Expand Down

0 comments on commit 26fce4f

Please sign in to comment.