@@ -140,7 +140,7 @@ external get: (t, int) => t = ""
140
140
/**
141
141
`charAt(n, s)` gets the character at index `n` within string `s`. If `n` is
142
142
negative or greater than the length of `s`, it returns the empty string. If the
143
- string contains characters outside the range \u0000-\uffff, it will return the
143
+ string contains characters outside the range \\ u0000-\ \uffff, it will return the
144
144
first 16-bit value at that position in the string.
145
145
146
146
See [`String.charAt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt)
@@ -336,7 +336,7 @@ let indexOf = (arg1, obj) => indexOf(obj, arg1)
336
336
/**
337
337
`indexOfFrom(searchValue, start, str)` returns the position at which
338
338
`searchValue` was found within `str` starting at character position `start`, or
339
- -1 if `searchValue` is not found in that portion of `str`. The return value is
339
+ \ -1 if `searchValue` is not found in that portion of `str`. The return value is
340
340
relative to the beginning of the string, no matter where the search started
341
341
from.
342
342
@@ -424,7 +424,7 @@ let localeCompare = (arg1, obj) => localeCompare(obj, arg1)
424
424
/**
425
425
`match(regexp, str)` matches a `string` against the given `regexp`. If there is
426
426
no match, it returns `None`. For regular expressions without the g modifier, if
427
- there is a match, the return value is `Some(array)` where the array contains:
427
+ there is a match, the return value is `Some(array)` where the array contains:
428
428
- The entire matched string
429
429
- Any capture groups if the regexp had parentheses
430
430
@@ -738,7 +738,7 @@ on MDN.
738
738
## Examples
739
739
740
740
```rescript
741
- Js.String.splitByRe(%re(" /\s*[,;]\s*TODO/") , "art; bed , cog ;dad") == [
741
+ Js.String.splitByRe(/\s*[,;]\s*TODO/, "art; bed , cog ;dad") == [
742
742
Some("art"),
743
743
Some("bed"),
744
744
Some("cog"),
@@ -762,15 +762,15 @@ on MDN.
762
762
## Examples
763
763
764
764
```rescript
765
- Js.String.splitByReAtMost(%re(" /\s*[,;]\s*TODO/") , ~limit=3, "one: two: three: four") == [
765
+ Js.String.splitByReAtMost(/\s*[,;]\s*TODO/, ~limit=3, "one: two: three: four") == [
766
766
Some("one"),
767
767
Some("two"),
768
768
Some("three"),
769
769
]
770
770
771
- Js.String.splitByReAtMost(%re(" /\s*[,;]\s*TODO/") , ~limit=0, "one: two: three: four") == []
771
+ Js.String.splitByReAtMost(/\s*[,;]\s*TODO/, ~limit=0, "one: two: three: four") == []
772
772
773
- Js.String.splitByReAtMost(%re(" /\s*[,;]\s*TODO/") , ~limit=8, "one: two: three: four") == [
773
+ Js.String.splitByReAtMost(/\s*[,;]\s*TODO/, ~limit=8, "one: two: three: four") == [
774
774
Some("one"),
775
775
Some("two"),
776
776
Some("three"),
@@ -1000,7 +1000,7 @@ on MDN.
1000
1000
## Examples
1001
1001
1002
1002
```rescript
1003
- Js.String.anchor("page1", "Page One") == "<a name="page1">Page One</a>"
1003
+ Js.String.anchor("page1", "Page One") == "<a name=\ "page1\ ">Page One</a>"
1004
1004
```
1005
1005
*/
1006
1006
@send
@@ -1018,7 +1018,7 @@ on MDN.
1018
1018
## Examples
1019
1019
1020
1020
```rescript
1021
- Js.String.link("page2.html", "Go to page two") == "<a href="page2.html">Go to page two</a>"
1021
+ Js.String.link("page2.html", "Go to page two") == "<a href=\ "page2.html\ ">Go to page two</a>"
1022
1022
```
1023
1023
*/
1024
1024
@send
0 commit comments