Mikhail
05/21/2022, 11:59 PMRegex
constructors ain't even documented..Mikhail
05/22/2022, 12:06 AMRegex
implementation on JVM target uses Pattern.compile(String)
for compiling patterns without any options.Chris Lee
05/22/2022, 12:44 AM/** Creates a regular expression from the specified [pattern] string and the specified set of [options]. */
public actual constructor(pattern: String, options: Set<RegexOption>) : this(Pattern.compile(pattern, ensureUnicodeCase(options.toInt())))
allowing creation with options, passed through to Pattern.compile.Mikhail
05/22/2022, 12:50 AMMikhail
05/22/2022, 12:52 AMwith the default options
part should be removed. Or does it really use some default options on other targets like JS?Chris Lee
05/22/2022, 12:55 AMMikhail
05/22/2022, 12:23 PMPattern.compile(Striing)
does not introduce default optionsChris Lee
05/22/2022, 2:33 PMMikhail
05/22/2022, 2:34 PMthe default options are noneso?
nkiesel
05/23/2022, 6:20 PM(?i)
), or by using the constructor.