validateRows doesn't work using validator parameter regex

I am have a problem to validade the data using validateRows.I am using this config to data validation: https://docs.handsontable.com/5.0.1/demo-data-validation.html#page-full-featured-example.

When the user click to send data. I am using the validateRows like this example: https://docs.handsontable.com/5.0.1/Core.html#validateRows.

Why the validateRows return false to the correct row and true to the incorrect row?
Ex: https://jsfiddle.net/djalmamanfrin/18fd0m5r/

Please, use the console to see the response.

Hi @djalma.manfrin

It seems to work fine with the example on our website https://jsfiddle.net/kosrhwx3/5/

If the whole array defined in the validateRows is valid we get Yes as an alert (in this case we can only ask for indexes 2 and 3). In all other cases, we get No (invalid data).
As far as I can see you are passing an array not an index to the method.

Hi, @aleksandra_budnik
Thank you for help me. I undertood my mistake.

Great to hear that the issue is gone.

Have a great day @djalma.manfrin