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

This commit is contained in:
Daniel Rosenwasser 2015-08-18 15:01:58 -07:00
parent 97618104bd
commit e4077ec0f8

8
src/lib/es6.d.ts vendored
View file

@ -702,6 +702,14 @@ interface RegExp {
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* 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: