How to use doesntContain validation?


Hi, I have simple form with email and password. And I want to add validation rule to email, so email won’t contain password. As I understand, I should use ‘doesntContain’ from here
but I can’t figure out how to use it in real example, syntax is not clear in the doc


maybe for someone it would be helpful

emailAddress: {
identifier: ‘email-address’,
rules: [{
type: ‘doesntContain[someString]’,
prompt: ‘Error text’