From 21619264d0f6da71f513a6000938c98f77931d51 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Tue, 8 Aug 2023 08:21:10 +0000 Subject: [PATCH] [K/N] Add a note to Regex documentation about future changes of behavior This note will allow us to fix https://youtrack.jetbrains.com/issue/KT-58198/Native-Regex-issues in the future. Co-authored-by: Ilya Gorbunov Merge-request: KT-MR-11387 Merged-by: Abduqodiri Qurbonzoda --- libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt b/libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt index fe494d6d871..d6509251700 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt @@ -79,6 +79,8 @@ public actual operator fun MatchGroupCollection.get(name: String): MatchGroup? { /** * Represents a compiled regular expression. * Provides functions to match strings in text with a pattern, replace the found occurrences and split text around matches. + * + * Note that in the future, the behavior of regular expression matching and replacement functions can be altered to match JVM implementation behavior where differences exist. */ public actual class Regex internal constructor(internal val nativePattern: Pattern) {