Added the '[Symbol.match]' method to the 'RegExp' interface.

This commit is contained in:
Daniel Rosenwasser
2015-08-18 13:39:51 -07:00
parent b7fcf161d5
commit 1e9b5e4c30

11
src/lib/es6.d.ts vendored
View File

@@ -647,8 +647,8 @@ interface Date {
}
interface RegExp {
/**
* Matches a string with a regular expression, and returns an array containing the results of
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
@@ -678,6 +678,13 @@ interface RegExp {
*/
split(string: string, limit?: number): string[];
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](str: string): RegExpMatchArray;
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order: