From 4220ec8a9487a0854aea67ed0e0805cf8f97c690 Mon Sep 17 00:00:00 2001 From: Jujhar Singh Date: Tue, 3 Nov 2020 10:43:18 -0800 Subject: [PATCH] Fix IntelliSense doc string.replace typo --- lib/lib.es2015.symbol.wellknown.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/lib.es2015.symbol.wellknown.d.ts b/lib/lib.es2015.symbol.wellknown.d.ts index d3a54c2dca0..8a3abd16050 100644 --- a/lib/lib.es2015.symbol.wellknown.d.ts +++ b/lib/lib.es2015.symbol.wellknown.d.ts @@ -236,7 +236,10 @@ interface String { /** * Replaces text in a string, using an object that supports replacement within a string. * @param searchValue A object can search for and replace matches within a string. - * @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 for successful + * match of searchValue in this string. You can use regex g flag i.e. + * str.replace(/replace_word/g, 'replace_me') to replace all values and gi + * flag to replace all case-insensitive values. */ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;