Skip to content

Commit 72384dd

Browse files
committed
Fix regexp for js
1 parent cfd8ad9 commit 72384dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

krpc/krpc-test/src/commonTest/kotlin/kotlinx/rpc/krpc/test/TransportTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ class TransportTest {
259259
}
260260

261261
private val handshakeClassSerialName = KrpcProtocolMessage.Handshake.serializer().descriptor.serialName
262-
private val clientHandshake = ".*\\[Client] \\[Send] \\{\"type\":\"$handshakeClassSerialName\".*+".toRegex()
262+
@Suppress("RegExpRedundantEscape") // fails on js otherwise
263+
private val clientHandshake = ".*\\[Client\\] \\[Send\\] \\{\"type\":\"$handshakeClassSerialName\".*".toRegex()
263264

264265
private val transportInitialized = atomic(0)
265266
private val configInitialized = atomic(0)

0 commit comments

Comments
 (0)