From 906510e0f30590a4c8fdc892905ccb8dbe512e3d Mon Sep 17 00:00:00 2001 From: navya9singh Date: Fri, 16 Sep 2022 15:36:21 -0700 Subject: [PATCH] Fixes for pr --- src/lib/es5.d.ts | 2 +- .../baselines/reference/completionsStringMethods.baseline | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 8fcc47e708b50..1d36ad18047a4 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -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; diff --git a/tests/baselines/reference/completionsStringMethods.baseline b/tests/baselines/reference/completionsStringMethods.baseline index 7e356829dd331..2d53d3ffbeda8 100644 --- a/tests/baselines/reference/completionsStringMethods.baseline +++ b/tests/baselines/reference/completionsStringMethods.baseline @@ -1078,7 +1078,7 @@ "target": { "fileName": "lib.d.ts", "textSpan": { - "start": 19080, + "start": 19113, "length": 28 } } @@ -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" }, { @@ -1101,7 +1101,7 @@ "target": { "fileName": "lib.d.ts", "textSpan": { - "start": 19080, + "start": 19113, "length": 28 } } @@ -1111,7 +1111,7 @@ "kind": "link" }, { - "text": " only the first match is replaced.", + "text": " is replaced.", "kind": "text" } ]