Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add regexp to antd

{getFieldDecorator("testNumber", {
        rules: [
          {
            required: true,
            type: "regexp",
            pattern: new RegExp(/d+/g),
            message: "Wrong format!"
          }
        ]
      })(<Input />)}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #regexp #antd
ADD COMMENT
Topic
Name
9+2 =