Agregar regexp a Antd
{getFieldDecorator("testNumber", {
rules: [
{
required: true,
type: "regexp",
pattern: new RegExp(/\d+/g),
message: "Wrong format!"
}
]
})(<Input />)}
Mohamed Iheb Hichri