Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

Putting a space after the TP id causes error #3

@Jameskmonger

Description

@Jameskmonger

When prompted for a TP id, putting an ID with a space after it (e.g. "28386 ") causes the following error:

>> Please enter a valid number.

This is because number in utils/validation.js passes the whole string into validator.isInt, which requires an exact integer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions