Commit 9bbe2d95 authored by Athanasios's avatar Athanasios
Browse files

refactor custom sanitizers

parent 84cdb6a4
const isValid = (value) => {
let tokens = value.split(",");
tokens = tokens.map(token => parseFloat(token));
if (tokens[0] < tokens[2] && tokens[1] < tokens[3]) {
return true;
}
return false;
}
module.exports = { isValid };
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment