From 04df1e18d9161035a18e0ea44eec8d1ce7d4f39d Mon Sep 17 00:00:00 2001 From: navya9singh Date: Mon, 25 Jul 2022 12:25:45 -0700 Subject: [PATCH] Follow up changes to es5.d.ts --- src/lib/es5.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index b062a920c37..a743cb0a073 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 to search for. - * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. + * @param replaceValue A string containing the text to replace. When the searchvalue is a string, only the first match is replaced. If the searchValue is a Regexp, all matches are replaced if the g flag is set. Otherwise only the first one is. */ replace(searchValue: string | RegExp, replaceValue: string): string;