(options)
| 13 | |
| 14 | // Pass options through so we can differentiate between regular and silent prompts |
| 15 | const read = (options) => |
| 16 | input.read(() => _read(options), { [META]: true, silent: options?.silent }) |
| 17 | |
| 18 | function readOTP (msg = otpPrompt, otp, isRetry) { |
| 19 | if (isRetry && otp && /^[\d ]+$|^[A-Fa-f0-9]{64,64}$/.test(otp)) { |
no test coverage detected