(v: string)
| 141 | |
| 142 | // https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-floating-point-number |
| 143 | function isValidFloatingPointNumber(v: string) { |
| 144 | return /^-?(?:\d+|\d*\.\d+)(?:[eE][-+]?\d+)?$/.test(v) |
| 145 | } |
| 146 | |
| 147 | export function prepareSelectionInterceptor( |
| 148 | element: HTMLInputElement | HTMLTextAreaElement, |