DefinitelyTyped/types/float-regex/index.d.ts
2018-05-29 15:46:43 -07:00

18 lines
467 B
TypeScript

// Type definitions for float-regex 1.0
// Project: https://github.com/substack/float-regex
// Definitions by: Anjun Wang <https://github.com/wanganjun>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* regular expression for real floating point values in javascript notation:
* ```
* /[-+]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][-+]?\d+)?/
* ```
*
* does not match:
* * +/- Infinity
* * NaN
*/
declare const regexp: RegExp;
export = regexp;