Add pattern and options properties to common Regex
And add a test that accesses them and checks they work as expected.
This commit is contained in:
@@ -43,6 +43,9 @@ expect class Regex {
|
||||
constructor(pattern: String, option: RegexOption)
|
||||
constructor(pattern: String, options: Set<RegexOption>)
|
||||
|
||||
val pattern: String
|
||||
val options: Set<RegexOption>
|
||||
|
||||
fun matchEntire(input: CharSequence): MatchResult?
|
||||
infix fun matches(input: CharSequence): Boolean
|
||||
fun containsMatchIn(input: CharSequence): Boolean
|
||||
|
||||
Reference in New Issue
Block a user