Skip to content

Commit 906510e

Browse files
committed
Fixes for pr
1 parent 0507192 commit 906510e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/lib/es5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ interface String {
430430
/**
431431
* Replaces text in a string, using a regular expression or search string.
432432
* @param searchValue A string or regular expression to search for.
433-
* @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a RegExp, all matches are replaced if the g flag is set (taking into account the y flag if present). Otherwise {@linkcode searchValue} only the first match is replaced.
433+
* @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag if present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
434434
*/
435435
replace(searchValue: string | RegExp, replaceValue: string): string;
436436

tests/baselines/reference/completionsStringMethods.baseline

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@
10781078
"target": {
10791079
"fileName": "lib.d.ts",
10801080
"textSpan": {
1081-
"start": 19080,
1081+
"start": 19113,
10821082
"length": 28
10831083
}
10841084
}
@@ -1088,7 +1088,7 @@
10881088
"kind": "link"
10891089
},
10901090
{
1091-
"text": " is a RegExp, all matches are replaced if the g flag is set (taking into account the y flag if present). Otherwise ",
1091+
"text": " is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag if present). Otherwise, only the first match of ",
10921092
"kind": "text"
10931093
},
10941094
{
@@ -1101,7 +1101,7 @@
11011101
"target": {
11021102
"fileName": "lib.d.ts",
11031103
"textSpan": {
1104-
"start": 19080,
1104+
"start": 19113,
11051105
"length": 28
11061106
}
11071107
}
@@ -1111,7 +1111,7 @@
11111111
"kind": "link"
11121112
},
11131113
{
1114-
"text": " only the first match is replaced.",
1114+
"text": " is replaced.",
11151115
"kind": "text"
11161116
}
11171117
]

0 commit comments

Comments
 (0)