From ecfa0de449789b90436630a1e72ca2f904418f51 Mon Sep 17 00:00:00 2001 From: Matt McCutchen Date: Fri, 10 Feb 2017 16:28:00 -0500 Subject: [PATCH] lib: Fix documentation of String.replace first parameter. The documentation incorrectly suggested that if the first parameter is a string, it is interpreted as a regular expression. --- src/lib/es5.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 038d0344fda..0894ddf11aa 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -341,14 +341,14 @@ interface String { /** * Replaces text in a string, using a regular expression or search string. - * @param searchValue A string that represents the regular expression. + * @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. */ replace(searchValue: string, replaceValue: string): string; /** * Replaces text in a string, using a regular expression or search string. - * @param searchValue A string that represents the regular expression. + * @param searchValue A string to search for. * @param replacer A function that returns the replacement text. */ replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;