Deprecate JS String match, matches and concat functions
This commit is contained in:
committed by
Space
parent
3fefed5131
commit
921af8e98c
@@ -228,9 +228,13 @@ public actual inline fun String.substring(startIndex: Int): String = asDynamic()
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun String.substring(startIndex: Int, endIndex: Int): String = asDynamic().substring(startIndex, endIndex)
|
||||
|
||||
@Deprecated("Use String.plus() instead", ReplaceWith("this + str"))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun String.concat(str: String): String = asDynamic().concat(str)
|
||||
|
||||
@Deprecated("Use Regex.findAll() instead or invoke matches() on String dynamically: this.asDynamic().match(regex)")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun String.match(regex: String): Array<String>? = asDynamic().match(regex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user