UNPKG

433 BJavaScriptView Raw
1"use strict";
2
3/**
4 * An email filter validates an email address
5 */
6class EmailFilter
7{
8
9 /**
10 * @param {string} name name of filter
11 */
12 constructor(name)
13 {
14
15 /**
16 * name of filter
17 * @type {string}
18 */
19 this.name = name;
20 }
21
22 /**
23 * @param {string} address_ address to validate
24 */
25 async doesAllow(address_)
26 {
27 throw new Error('TODO: Implement filter');
28 }
29}
30
31module.exports = EmailFilter;