Pattern implementation for JS.

This commit is contained in:
Ilya Gorbunov
2015-04-08 20:32:22 +03:00
parent da1641e0f8
commit a4784dfa78
8 changed files with 174 additions and 146 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class RegExpTest {
val m2 = re.exec(string)!!
assertEquals(array("A5D5", "A5", "D5"), m2)
assertEquals(string.indexOf(m2[0]), (m2 as RegExpMatch).index)
assertEquals(string.indexOf(m2[0]!!), (m2 as RegExpMatch).index)
val noMatch = re.exec(string)
assertEquals(null, noMatch)