mac validator
Validate a MAC address
Options
Using with form field
| Name | HTML attribute | Type | Description | 
|---|
| message | data-fv-mac___message | String | The error message | 
Using the ES6 module
import { mac } from '/vendors/@form-validation/cjs/validator-mac';
const result = mac().validate({
    value: ...,
    options: {
        message: ...,
    },
});
Using the npm package
- Install the validator package:
$ npm install @form-validation/validator-mac
import { mac } from '@form-validation/validator-mac';
const result = mac().validate({
    value: ...,
    options: {
        message: ...,
    },
});
See also
Changelog