KT-51908 Common MatchGroupCollection.get(name) extension function
This commit is contained in:
committed by
Space Team
parent
448e9fc5e7
commit
175566fe56
@@ -68,7 +68,7 @@ public actual data class MatchGroup(actual val value: String, val range: IntRang
|
||||
* for example, when it's not supported by the current platform.
|
||||
*/
|
||||
@SinceKotlin("1.7")
|
||||
public operator fun MatchGroupCollection.get(name: String): MatchGroup? {
|
||||
public actual operator fun MatchGroupCollection.get(name: String): MatchGroup? {
|
||||
val namedGroups = this as? MatchNamedGroupCollection
|
||||
?: throw UnsupportedOperationException("Retrieving groups by name is not supported on this platform.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user