We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegExp.escape
1 parent 2136281 commit 5e389ceCopy full SHA for 5e389ce
kotlin-js/src/commonMain/kotlin/js/regexp/RegExp.kt
@@ -117,4 +117,11 @@ open external class RegExp(
117
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test)
118
*/
119
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
+ }
127
}
0 commit comments