Skip to content

patterns:number数字验证有错误 #56

@flyromance

Description

@flyromance

return result && (0 >= step ? (text >= min && text <= max) : 0 === (text + min) % step && (text >= min && text <= max))
以上代码中,如果step大于0,应该是 (text - min) % step === 0 把,不是 text + min

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