[Vuejs]-Vee-validate regex rule is showing error even with match

0👍

rules prop should not be string. Try this:

<ValidationProvider
      :rules="{
        regex: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,
      }"
      class="MyClass"
      tag="div"
      style="width: 50%"
>

Leave a comment