Make JS Regex.replace not inline #KT-27738

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-01 09:30:54 +03:00
committed by Space
parent 91aa956f34
commit 407feb656e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ public actual class Regex actual constructor(pattern: String, options: Set<Regex
* the given function [transform] that takes [MatchResult] and returns a string to be used as a
* replacement for that match.
*/
public actual inline fun replace(input: CharSequence, transform: (MatchResult) -> CharSequence): String {
public actual fun replace(input: CharSequence, transform: (MatchResult) -> CharSequence): String {
var match = find(input)
if (match == null) return input.toString()