endsWith

Ensure the value of field under validation ends with a certain substr. This validation will also trim whitespaces before making the check

const rules = {
  reg_no: 'ends_with:qaw'
}

// or
const rules = {
  reg_no: [
    rule('ends_with', 'qaw')
  ]
}

For customized build, you can import this rule as follows.

import { endsWith } from 'indicative/builds/validations'