Remove Regex() and toRegex() overloads with vararg options. Now only zero, one or set of options are allowed.

This commit is contained in:
Ilya Gorbunov
2015-04-16 19:23:52 +03:00
parent 44d7f768c7
commit 81325208be
4 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class RegexTest {
test fun escapeLiteral() {
val literal = """[-\/\\^$*+?.()|[\]{}]"""
assertTrue(Regex.fromLiteral(literal).matches(literal))
assertTrue(Regex(Regex.escape(literal)).matches(literal))
assertTrue(Regex.escape(literal).toRegex().matches(literal))
}
test fun replace() {