@internal
(s: string, options: ParseOptions)
| 1416 | } |
| 1417 | /** @internal */ |
| 1418 | matchPart(s: string, options: ParseOptions): number | undefined { |
| 1419 | return this._match(isStringFiniteRegExp, s, options) |
| 1420 | } |
| 1421 | private _match(regexp: RegExp, s: string, options: ParseOptions): number | undefined { |
| 1422 | if (!regexp.test(s)) return undefined |
| 1423 | const value = globalThis.Number(s) |