Skip to content

Commit 5e389ce

Browse files
committed
RegExp. RegExp.escape
1 parent 2136281 commit 5e389ce

File tree

1 file changed

+7
-0
lines changed
  • kotlin-js/src/commonMain/kotlin/js/regexp

1 file changed

+7
-0
lines changed

kotlin-js/src/commonMain/kotlin/js/regexp/RegExp.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,11 @@ open external class RegExp(
117117
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test)
118118
*/
119119
fun test(string: String): Boolean
120+
121+
companion object {
122+
/**
123+
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape)
124+
*/
125+
fun escape(string: String): String
126+
}
120127
}

0 commit comments

Comments
 (0)