eventlog: add params for from and to date
This commit is contained in:
+9
-1
@@ -10,6 +10,14 @@ function isEmail(email) {
|
||||
return emailRegex.test(email);
|
||||
}
|
||||
|
||||
function isIsoDate(value) {
|
||||
assert.strictEqual(typeof value, 'string');
|
||||
|
||||
const date = new Date(value);
|
||||
return !Number.isNaN(date.getTime());
|
||||
}
|
||||
|
||||
export default {
|
||||
isEmail
|
||||
isEmail,
|
||||
isIsoDate
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user