Skip to content

Commit 04df1e1

Browse files
committed
Follow up changes to es5.d.ts
1 parent 3cade4c commit 04df1e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/es5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ interface String {
430430
/**
431431
* Replaces text in a string, using a regular expression or search string.
432432
* @param searchValue A string to search for.
433-
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
433+
* @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.
434434
*/
435435
replace(searchValue: string | RegExp, replaceValue: string): string;
436436

0 commit comments

Comments
 (0)