8000 Add a code number prompt type (ex : 0048) · Issue #428 · terkelg/prompts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add a code number prompt type (ex : 0048) #428
Open
@DanielC-N

Description

@DanielC-N

Is your feature request related to a problem?

Right now "number" prompt type doesn't accept zero(s) on the left-hand side.
I'd need a similar prompt like number but one that accepts four or more digits whatever they are.
Use case : for a 4-digit auth code.

Describe the solution you'd like

I want to implement a prompt type to accept codes (for e.g. 4-digit codes for an authentication).

Describe alternatives you've considered

Tweaking number behaviour with an option. But this could result in unwanted breaking changes.

The question

What do you think about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0