An error occurred while loading the file. Please try again.
-
Wolfgang Knopki authored34348b3f
const toLower = (value) => {
if (!value) return;
return value.toLowerCase();
}
const toUpper = (value) => {
if (!value) return;
return value.toUpperCase();
}
const boundingboxIsValid = (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 = { toLower, toUpper, boundingboxIsValid };