Skip to content

Commit

Permalink
Fixes for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
navya9singh committed Sep 16, 2022
1 parent 0507192 commit 906510e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/es5.d.ts
Expand Up @@ -430,7 +430,7 @@ interface String {
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string or regular expression to search for.
* @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.
* @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.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;

Expand Down
8 changes: 4 additions & 4 deletions tests/baselines/reference/completionsStringMethods.baseline
Expand Up @@ -1078,7 +1078,7 @@
"target": {
"fileName": "lib.d.ts",
"textSpan": {
"start": 19080,
"start": 19113,
"length": 28
}
}
Expand All @@ -1088,7 +1088,7 @@
"kind": "link"
},
{
"text": " is a RegExp, all matches are replaced if the g flag is set (taking into account the y flag if present). Otherwise ",
"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 ",
"kind": "text"
},
{
Expand All @@ -1101,7 +1101,7 @@
"target": {
"fileName": "lib.d.ts",
"textSpan": {
"start": 19080,
"start": 19113,
"length": 28
}
}
Expand All @@ -1111,7 +1111,7 @@
"kind": "link"
},
{
"text": " only the first match is replaced.",
"text": " is replaced.",
"kind": "text"
}
]
Expand Down

0 comments on commit 906510e

Please sign in to comment.