(config)
| 2409 | |
| 2410 | // date from iso format or fallback |
| 2411 | function configFromString(config) { |
| 2412 | var matched = aspNetJsonRegex.exec(config._i); |
| 2413 | |
| 2414 | if (matched !== null) { |
| 2415 | config._d = new Date(+matched[1]); |
| 2416 | return; |
| 2417 | } |
| 2418 | |
| 2419 | configFromISO(config); |
| 2420 | if (config._isValid === false) { |
| 2421 | delete config._isValid; |
| 2422 | utils_hooks__hooks.createFromInputFallback(config); |
| 2423 | } |
| 2424 | } |
| 2425 | |
| 2426 | utils_hooks__hooks.createFromInputFallback = deprecate( |
| 2427 | 'moment construction falls back to js Date. This is ' + |
no test coverage detected